MCPcopy Create free account
hub / github.com/InternScience/SciReason / dispatch_tasks

Function dispatch_tasks

tools/case_analyzer.py:168–179  ·  view source on GitHub ↗
(cfg, force=False)

Source from the content-addressed store, hash-verified

166
167
168def dispatch_tasks(cfg, force=False):
169 for model in cfg['models']:
170 for dataset in cfg['datasets']:
171 if force or not osp.exists(
172 get_infer_output_path(
173 model, dataset,
174 osp.join(cfg['work_dir'], 'case_analysis/all'))):
175 BadcaseShower({
176 'model': model,
177 'dataset': dataset,
178 'work_dir': cfg['work_dir']
179 }).run()
180
181
182def main():

Callers 1

mainFunction · 0.70

Calls 3

get_infer_output_pathFunction · 0.90
BadcaseShowerClass · 0.85
runMethod · 0.45

Tested by

no test coverage detected