Config file parameter loading with method AttributeDict may be implemented for more readable code.
Read config via:
def _get_config(self):
"""
Load configuration from self.config.bb.pre_process()
writes to self.config.
"""
with open(self.config, 'r') as cfg:
self.config = yaml.load(cfg)
self.config = AttributeDict(**self.config)
and access in our case e.g.:
self.config.Prior.priors.sm_clim.type
Config fileparameter loading with methodAttributeDictmay be implemented for more readable code.Read config via:
and access in our case e.g.: