bucky.config

Global configuration handler for Bucky, also include prior parameters

Module Contents

Classes

BuckyConfig

Bucky configuration.

Functions

locate_base_config()

Locate the base_config package that shipped with bucky (it's likely in site-packages).

locate_current_config()

Find the config file/directory to use.

Attributes

base_cfg

cfg

def load_base_cfg(path):

file

bucky.config.base_cfg[source]
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.

static _age_interp(x_bins_new, x_bins, y)[source]

Interpolate parameters define in age groups to a new set of age groups.

_convert_paths(self)[source]
_set_default_variances(self, copy=False)[source]
_to_arrays(self, copy=False)[source]
_to_lists(self, copy=False)[source]
interp_age_bins(self)[source]
load_cfg(self, par_path)[source]

Read in the YAML cfg file(s).

promote_sampled_values(self)[source]
sample_distributions(self)[source]

Draw a sample from each distributional parameter and drop it inline (in a returned copy of self)

to_yaml(self, *args, **kwargs)[source]

Return YAML represenation of self.

bucky.config.locate_base_config()[source]

Locate the base_config package that shipped with bucky (it’s likely in site-packages).

bucky.config.locate_current_config()[source]

Find the config file/directory to use.