cosmicjellyfish.configs.context#

Run-local analysis configuration.

This module introduces AnalysisContext, a snapshot of the configuration state required by forecasts and likelihood-based data analysis. During the migration away from configs.config module globals, build_analysis_context uses the legacy initialiser and snapshots its resolved state. New consumers can therefore accept an AnalysisContext without depending on FisherMatrix.

The legacy initialiser still mutates process-wide state in this milestone. That behaviour is intentionally preserved for compatibility and will be removed only after probe implementations receive explicit contexts.

Functions

build_analysis_context

Build a run-local analysis context using the legacy resolver.

Classes

AnalysisContext

Resolved configuration and fiducial state for one analysis run.