nxtomomill.models.base.FrmFlatToNestedBase.FrmFlatToNestedBase#

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

Bases: ConfigBase

Base class defining behavior for models needing to be dumped with sections.

Internally they are represented as ‘flat’ but externally they are represented as nested to ease user setting values. This is the historical design. Maybe in the future we will use nested models internally as well.

__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

to_nested_model()

static from_dict(dict_)#

Warning

deprecated since 2.0

Return type:

None