eradiate.experiments.Experiment#
- class eradiate.experiments.Experiment(measures=_Nothing.NOTHING, integrator=_Nothing.NOTHING, results=_Nothing.NOTHING)[source]#
Bases:
ABC
Abstract base class for all Eradiate experiments. An experiment consists of a high-level scene specification parametrized by natural user input, a processing and post-processing pipeline, and a result storage data structure.
- Parameters:
measures (
list
ofMeasure
orlist
ofdict
orMeasure
ordict
, default:MultiDistantMeasure()
) – List of measure specifications. The passed list may contain dictionaries, which will be interpreted bymeasure_factory
. Optionally, a singleMeasure
or dictionary specification may be passed and will automatically be wrapped into a list.integrator (
Integrator
ordict
, default:PathIntegrator()
) – Monte Carlo integration algorithm specification. This parameter can be specified as a dictionary which will be interpreted byintegrator_factory
.
- Fields:
measures (
list
ofMeasure
) – List of measure specifications.
- abstract process(spp=0, seed_state=None)[source]#
Run simulation and collect raw results.
- Parameters:
- abstract property context_init#
Return a single context used for scene initialization.
- abstract property contexts#
Return a list of contexts used for processing.
- property integrator#
Integrator used to solve the radiative transfer equation.
- Type:
- property results#
Post-processed simulation results.
- Returns:
dict[str
,Dataset]
– Dictionary mapping measure IDs to xarray datasets.