eta_ctrl.config.config module
- class eta_ctrl.config.config.Config(*, root_path: Path, config_file_relpath: Path, paths: ConfigPaths = <factory>, setup: ConfigSetup, settings: ConfigSettings)[source]
Bases:
BaseModelConfiguration for the optimization, which can be loaded from a JSON, TOML, or YAML file.
Holds the config name and path configuration, remaining data is split up in ConfigSetup and ConfigSettings. Should be instantiated via the .from_file() method.
- model_config = {'extra': 'forbid', 'frozen': True, 'use_attribute_docstrings': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- root_path: Path
Root folder path for the optimization run (default: parent folder of invoking script). Default value is only set when creating config via a file.
- config_file_relpath: Path
- paths: ConfigPaths
Optimization run paths.
- setup: ConfigSetup
Optimization run setup.
- settings: ConfigSettings
Optimization run settings.