eradiate.experiments.run¶
- eradiate.experiments.run(exp, measures=None, spp=0, seed_state=None)[source]¶
Run an Eradiate experiment. This function performs kernel scene assembly, runs the computation and post-processes the raw results. The output consists of one or several xarray datasets.
- Parameters:
exp (
Experiment) – Reference to the experiment object which will be processed.measures (
intorstrorlistofintorstr, optional) – Indices of the measures that will be processed. By default, all measures are processed.spp (
int, optional, default:0) – Optional parameter to override the number of samples per pixel for all computed measures. If set to 0, the configured value for each measure takes precedence.seed_state (
SeedState, optional) – Seed state used to generate seeds to initialize Mitsuba’s RNG at every iteration of the parametric loop. If unset, Eradiate’sroot seed stateis used.
- Returns:
Datasetordict[str,Dataset]– If a single measure is processed, a single xarray dataset is returned. If several measures are processed, a dictionary mapping measure IDs to the corresponding result dataset is returned.
Notes
Successive calls to this function with different measures will not reset the
Experiment.resultsdictionary.Successive calls with already processed measures will overwrite prior results.