nxtomomill.models.base.ConfigBase.ConfigBase#

class nxtomomill.models.base.ConfigBase.ConfigBase[source]#

Bases: object

Base class for models that can produce a configuration file (.cfg) to be provided to one of the converter.

The configuration is setting inputs for the different conversion functions / classes. We expect config classes / models to inherit from this class and from a pydantic model.

__init__()#

Methods

__init__()

from_cfg_file(file_path)

rtype:

ConfigBase

from_dict(dict_)

Warning

deprecated since 2.0

to_cfg_file(file_path[, filter_sections])

to_dict()

rtype:

dict

static from_dict(dict_)[source]#

Warning

deprecated since 2.0

Return type:

None