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

Function load_config

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

Source from the content-addressed store, hash-verified

74
75
76def load_config(cfg_file, context=None):
77 with open(cfg_file, "r") as fin:
78 raw = fin.read()
79 template = jinja2.Template(raw)
80 instance = template.render(context)
81 cfg = yaml.safe_load(instance)
82 cfg = easydict.EasyDict(cfg)
83 return cfg
84
85
86def build_solver(cfg, dataset):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected