BaseConfig#

class pyopenms_viz._config.BaseConfig#

Bases: ABC

__eq__(other)#

Return self==value.

__hash__ = None#
__init__() None#
__repr__()#

Return repr(self).

__weakref__#

list of weak references to the object

classmethod from_dict(config_dict: Dict[str, Any]) BaseConfig#

Convert a dictionary to a LegendConfig instance.

Args: legend_dict (Dict[str, Any]): Dictionary containing legend configuration.

Returns: BaseConfig: An child class from BaseConfig

update(**kwargs)#

Update the dataclass fields with kwargs.

update_none_fields(other: BaseConfig) None#

Update only the fields that are None with values from another BaseConfig object.

Args: other (BaseConfig): Another BaseConfig object containing values to update.