sec_interp.core.services.profile.cache module
Cache-key builders for profile components.
Every input that can change a component’s output must participate in its cache key; otherwise changing a layer, field mapping or smoothing option reuses stale data. This module centralizes those inputs so the controller and the tests use one definition per component.
- sec_interp.core.services.profile.cache.component_cache_key(**parts: Any) str
Hash the named inputs of one profile component.
- Parameters:
**parts – Named component inputs. Values with an
id()method (QGIS layers) are represented by that ID.- Returns:
MD5 hash of the sorted
name=valuepairs.
- sec_interp.core.services.profile.cache.drillholes_cache_key(params: PreviewParams) str
Return the cache key for the drillhole projection component.
- sec_interp.core.services.profile.cache.geology_cache_key(params: PreviewParams) str
Return the cache key for the geological profile component.
- sec_interp.core.services.profile.cache.structures_cache_key(params: PreviewParams) str
Return the cache key for the structural measurements component.
- sec_interp.core.services.profile.cache.topography_cache_key(params: PreviewParams) str
Return the cache key for the topographic profile component.