MCPcopy Create free account
hub / github.com/DeepGraphLearning/DiffPack / load_config

Function load_config

util.py:70–77  ·  view source on GitHub ↗
(cfg_file, context=None)

Source from the content-addressed store, hash-verified

68
69
70def load_config(cfg_file, context=None):
71 with open(cfg_file, "r") as fin:
72 raw = fin.read()
73 template = jinja2.Template(raw)
74 instance = template.render(context)
75 cfg = yaml.safe_load(instance)
76 cfg = easydict.EasyDict(cfg)
77 return cfg
78
79
80def parse_args():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected