energy_analysis.ccya_case.config#

Explicit inputs and study settings; scenario names are never probabilities.

class energy_analysis.ccya_case.config.Scenario(id: 'str', label: 'str', historical_path: 'Path', projection_path: 'Path', source: 'str')[source]#

Bases: object

Parameters:
  • id (str)

  • label (str)

  • historical_path (Path)

  • projection_path (Path)

  • source (str)

id: str#
label: str#
historical_path: Path#
projection_path: Path#
source: str#
class energy_analysis.ccya_case.config.CaseConfig(title: 'str', data_kind: "Literal['synthetic', 'observed_and_projected']", measured_path: 'Path', measured_source: 'str', output_path: 'Path', scenarios: 'tuple[Scenario, ...]', degradation_rates: 'tuple[float, ...]' = (0.0, 0.0025, 0.005, 0.01), report_years: 'tuple[int, ...]' = (25, 50), plot_degradation_rate: 'float' = 0.005)[source]#

Bases: object

Parameters:
  • title (str)

  • data_kind (Literal['synthetic', 'observed_and_projected'])

  • measured_path (Path)

  • measured_source (str)

  • output_path (Path)

  • scenarios (tuple[Scenario, ...])

  • degradation_rates (tuple[float, ...])

  • report_years (tuple[int, ...])

  • plot_degradation_rate (float)

title: str#
data_kind: Literal['synthetic', 'observed_and_projected']#
measured_path: Path#
measured_source: str#
output_path: Path#
scenarios: tuple[Scenario, ...]#
degradation_rates: tuple[float, ...]#
report_years: tuple[int, ...]#
plot_degradation_rate: float#
energy_analysis.ccya_case.config.load_config(path)[source]#

Load strict TOML; resolve local CSV and output paths beside the config.

Parameters:

path (Path)

Return type:

CaseConfig