bucky.config
#
Global configuration handler for Bucky, also include prior parameters
Module Contents#
Classes#
Bucky configuration. |
|
Class to wrap path-like objects fromt he yaml files. |
Functions#
Locate the base_config package that shipped with bucky (it's likely in site-packages). |
|
Find the config file/directory to use. |
Attributes#
def load_base_cfg(path): |
|
- bucky.config.cfg[source]#
- def load_base_cfg(path):
base_cfg.load_cfg(path)
- def roll_cfg_distributions():
cfg = base_cfg.sample_distributions()
- bucky.config.file = par2/#
- class bucky.config.BuckyConfig(dict_of_dicts=None, seperator='.', ordered=True)[source]#
Bases:
bucky.util.nested_dict.NestedDict
Bucky configuration.
- _set_default_variances(self, copy=False)[source]#
Set gaussian variance to the default for params that don’t do so explictly.
- interp_age_bins(self)[source]#
Interpolate any age stratified params to the model specified age bins.
- promote_sampled_values(self)[source]#
Promote sampled distributions up in the hierarchy so they are more easily referenced.
- class bucky.config.YamlPath[source]#
Bases:
pathlib.PosixPath
Class to wrap path-like objects fromt he yaml files.
- yaml_tag = !path#