(cfg_file, context=None)
| 74 | |
| 75 | |
| 76 | def 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 | |
| 86 | def build_solver(cfg, dataset): |
nothing calls this directly
no outgoing calls
no test coverage detected