uvex_transients.phase_space.experiment.CampaignSettings.from_config#
- classmethod CampaignSettings.from_config(*, n_initial: int | None = None, batch_size: int | None = None, max_points: int | None = None, tolerance: float | None = None, seed: int = 0, kinds: Sequence[str] = ()) CampaignSettings[source]#
Build the settings, taking what is not given from
config["phase_space.campaign"].- Parameters:
n_initial (optional) – As for the class. Any that is None (the default) is read from the configuration.
batch_size (optional) – As for the class. Any that is None (the default) is read from the configuration.
max_points (optional) – As for the class. Any that is None (the default) is read from the configuration.
tolerance (optional) – As for the class. Any that is None (the default) is read from the configuration.
seed (
int, optional) – The root seed of the measurements.kinds (
sequenceofstr, optional) – The kinds of the sampler the campaign is for, whose own sections of the configuration take precedence (seedefault()).
- Returns:
The settings.
- Return type: