uvex_transients.phase_space.sampling.base.StoppingRule.from_config#

classmethod StoppingRule.from_config(*, chunk_size: int | None = None, k_target: int | None = None, n_max: int | None = None, kinds: Sequence[str] = ()) → StoppingRule[source]#

Build the rule, taking what is not given from config["phase_space.stopping"].

Parameters:
  • chunk_size (int, optional) – As for the class. Any that is None (the default) is read from the configuration.

  • k_target (int, optional) – As for the class. Any that is None (the default) is read from the configuration.

  • n_max (int, optional) – As for the class. Any that is None (the default) is read from the configuration.

  • kinds (sequence of str, optional) – The kinds of the sampler the rule is for, whose own sections of the configuration take precedence (see default()).

Returns:

The rule.

Return type:

StoppingRule