SNN2.src.io.configuration module
Configuration module
Use this module to manage a configuration object.
- class SNN2.src.io.configuration.ConfHandler(conf_file: FileHandler | DirectoryHandler)
Bases:
objectConfHandler.
General object Configuration handler
It uses the module configparser to manage and update the current configuration.
- update(conf: FileHandler | DirectoryHandler, inplace: bool = True) None | ConfHandler
update. Is possible to update the current configuration with the content of the conf FH passed. The parameters inside the conf will have priority over the previous configuration. The FH self.file does not reflect the new FH. Is possible to obtain a new ConfHandler without performing this operation in place
- Parameters:
conf (FH) – conf the new configuration file handler
inplace (bool) – inplace, when active the change is done inplace otherwise a new copy is returned
- Return type:
Union[None, ConfHandler]