postprocessor.core.processor.PostProcessorParameters¶
- class postprocessor.core.processor.PostProcessorParameters(targets={}, param_sets={}, outpaths={})¶
Bases:
ParametersABC
Anthology of parameters used for postprocessing :merger: :picker: parameters for picker :processes: list processes:[objectives], ‘processes’ are defined in ./processes/
while objectives are relative or absolute paths to datasets. If relative paths the post-processed addresses are used. The order of processes matters.
Methods
from_yaml
(source)Returns instance from a yaml filename or stdin
to_dict
([iterable])Recursive function to return a nested dictionary of the attributes of the class instance.
to_yaml
([path])Returns a yaml stream of the attributes of the class instance.
update
(name, new_value)Update values recursively if name is a dictionary, inject data where found.
default
find_in_1st
from_dict
- __init__(targets={}, param_sets={}, outpaths={})¶
Defines parameters as attributes
Methods
__init__
([targets, param_sets, outpaths])Defines parameters as attributes
default
([kind])find_in_1st
(string, lol)from_dict
(d)from_yaml
(source)Returns instance from a yaml filename or stdin
to_dict
([iterable])Recursive function to return a nested dictionary of the attributes of the class instance.
to_yaml
([path])Returns a yaml stream of the attributes of the class instance.
update
(name, new_value)Update values recursively if name is a dictionary, inject data where found.
- classmethod from_yaml(source: Union[PosixPath, str])¶
Returns instance from a yaml filename or stdin
- to_dict(iterable='null')¶
Recursive function to return a nested dictionary of the attributes of the class instance.
- to_yaml(path: Optional[Union[PosixPath, str]] = None)¶
Returns a yaml stream of the attributes of the class instance. If path is provided, the yaml stream is saved there.
- Parameters
- pathUnion[PosixPath, str]
Output path.
- update(name: str, new_value)¶
Update values recursively if name is a dictionary, inject data where found. It forbids type changes.