hera_sim.simulate.Simulator.apply_defaults

Simulator.apply_defaults(config: str | dict | None, refresh: bool = True)[source]

Apply the provided default configuration.

Equivalent to calling set() with the same parameters.

Parameters:
  • config – If given, either a path pointing to a defaults configuration file, a string identifier of a particular config (e.g. ‘h1c’) or a dictionary of configuration parameters (see Defaults).

  • refresh – Whether to refresh the defaults.