eradiate.experiments.Experiment#
- class eradiate.experiments.Experiment(measures=NOTHING, integrator=AUTO, results=NOTHING, default_spectral_set=AUTO, quad_spec=NOTHING)[source]#
Bases:
ABCAbstract 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 (
listofMeasureorlistofdictorMeasureordict, default:MultiDistantMeasure()) – List of measure specifications. The passed list may contain dictionaries, which will be interpreted bymeasure_factory. Optionally, a singleMeasureor dictionary specification may be passed and will automatically be wrapped into a list.integrator (
IntegratorordictorAUTO, default:AUTO) – Monte Carlo integration algorithm specification. This parameter can be specified as a dictionary which will be interpreted byintegrator_factory.The integrator defaults toAUTO, which will choose the appropriate integrator depending on the experiment’s configuration.default_spectral_set (
BinSetorWavelengthSetorAUTO, default:AUTO) – Default spectral set. This attribute is used to set the default value forspectral_set.If the value isAUTO, the default spectral set is selected based on the active mode. Otherwise, the value must be aBinSetorWavelengthSetinstance.
- Fields:
measures (
listofMeasure) – List of measure specifications.integrator (
IntegratororAUTO) – Monte Carlo integration algorithm specification.default_spectral_set (
BinSetorWavelengthSet) – Default spectral set.
- abstract pipeline(measure)[source]#
Return the post-processing pipeline for a given measure.
- 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 results#
Post-processed simulation results.
- Returns:
dict[str,Dataset]– Dictionary mapping measure IDs to xarray datasets.
- property spectral_set#
A dictionary mapping measure index to the associated spectral set.