generators module

Tools to create configuration files for ZuNIS objects

create_integrator_config_file(filepath='integator_config.yaml', base_config=None, force=False, **kwargs)[source]

Create a config file for an integrator.

Parameters
  • filepath (str) – path of the file to which a config file will be saved

  • base_config (str or None) – path of the source config file on which to base the new config. If none, use the default provided with the library

  • force (bool, False) – whether to overwrite an existing target file

  • **kwargs – options that will be set in the new target file. If the option does not already exist in the base config file, the option is created at the top level. Otherwise, the existing option is updated even if it is nested (see zunis.utils.config.configuration.Configuration).