sec_interp.core.services.profile.geology module
Geological-profile component processor for the profile pipeline.
- sec_interp.core.services.profile.geology.process_geology(params: PreviewParams, extractor: Any, service: Any, cache: DataCache, cache_meta: dict) list[GeologySegment] | None
Extract and cache geological segments.
- Parameters:
params – Preview parameters with the outcrop layer and smoothing.
extractor – Geology extractor adapter.
service – Geology segment builder.
cache – Component cache.
cache_meta – Metadata stored with a cache entry.
- Returns:
Geological segments, possibly an empty list.
- Raises:
ProfileInputError – If line, raster or outcrop layers are missing.
ProfileServiceError – If the extractor or service is unavailable.