BaseConfig#
- class pyopenms_viz._config.BaseConfig#
Bases:
ABC- __eq__(other)#
Return self==value.
- __init__() None#
- __repr__()#
Return repr(self).
- __weakref__#
list of weak references to the object
- classmethod from_dict(config_dict: Dict[str, Any]) BaseConfig#
Converts a dictionary to a config instance. Commonly used for LegendConfig
- Parameters:
config_dict (Dict[str, Any]) – Dictionary containing configuration values.
- Returns:
An instance of the config class with updated fields.
- Return type:
- update(**kwargs)#
Update the dataclass fields with kwargs.
- Parameters:
**kwargs – Field names and values to update.
- update_none_fields(other: BaseConfig) None#
Update only the fields that are None with values from another BaseConfig object.
- Parameters:
other (BaseConfig) – Another BaseConfig object containing values to update.