sec_interp.core.controller module

Controller for SecInterp profile data generation. Handles orchestration of services and caching.

class sec_interp.core.controller.ProfileController

Bases: object

Orchestrates data generation services for SecInterp.

Initialize services and cache.

__init__()

Initialize services and cache.

get_cached_data(inputs: Dict[str, Any]) Dict[str, Any] | None

Retrieve data from cache if available.

cache_data(inputs: Dict[str, Any], data: Dict[str, Any]) None

Cache the generated data.

generate_profile_data(values: Dict[str, Any]) Tuple[List, Any, Any, Any, List[str]]

Unified method to generate all profile data components.

Parameters:

values (dict) – Validated input values.

Returns:

(profile_data, geol_data, struct_data, drillhole_data, messages)

Return type:

tuple