base_config¶
Base config class(es).
- class graphnet.utilities.config.base_config.BaseConfig[source]¶
Bases:
BaseModel
Base class for Configs.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- dump(path)[source]¶
Save BaseConfig to path as YAML file, or return as string.
- Return type:
Optional
[str
]- Parameters:
path (str | None)
- as_dict()[source]¶
Represent BaseConfig as a dict.
This builds on BaseModel.dict() but can be overwritten.
- Return type:
Dict
[str
,Dict
[str
,Any
]]
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].