hutch_python.load_conf.load¶
- hutch_python.load_conf.load(cfg=None, args=None)¶
Read the config file and convert the yaml format into a
dict
.This method:
Finds the hutch’s launch directory
Modify the conf if specified by args -
exp
is an override for the experiment keyLoads the hutch’s objects by calling
load_conf.load_conf
- Parameters:
cfg (
str
, optional) – Path to theconf.yml
file. If this is missing, we’ll end up with a very empty environment.args (
Namespace
, optional) – All of the arguments from the cli.
- Returns:
objs – All objects defined by
conf.yml
. The strings are the names that will be accessible in the global namespace.- Return type:
dict{str: object}