Skip to content

Commit

Permalink
fix: add prep-dp-optim and run-dp-optim in keys
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzyphysics committed Mar 29, 2024
1 parent a760446 commit a3d62f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions dpgen2/entrypoint/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,10 @@ def get_superop(key):
return key.replace("prep-caly-input", "prep-run-explore")
elif "collect-run-calypso-" in key:
return re.sub("collect-run-calypso-[0-9]*-[0-9]*", "prep-run-explore", key)
elif "prep-run-dp-optim-" in key:
return re.sub("prep-run-dp-optim-[0-9]*-[0-9]*", "prep-run-explore", key)
elif "prep-dp-optim-" in key:
return re.sub("prep-dp-optim-[0-9]*-[0-9]*", "prep-run-explore", key)
elif "run-dp-optim-" in key:
return re.sub("run-dp-optim-[0-9]*-[0-9]*-[0-9]*", "prep-run-explore", key)
elif "run-caly-model-devi" in key:
return key.replace("run-caly-model-devi", "prep-run-explore")
return None
Expand Down Expand Up @@ -843,7 +845,8 @@ def get_resubmit_keys(
"modify-train-script",
"prep-caly-input",
"collect-run-calypso",
"prep-run-dp-optim",
"prep-dp-optim",
"run-dp-optim",
"run-caly-model-devi",
"prep-run-explore",
"prep-lmp",
Expand Down
2 changes: 1 addition & 1 deletion dpgen2/op/collect_run_caly.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def normalize_config(data={}):


def prep_last_calypso_file(step, results, opt_results_dir, qhull_input, vsc):
if step is not None and results is not None or opt_results_dir is not None:
if step is not None and results is not None and opt_results_dir is not None:
Path(step.name).symlink_to(step)
Path(results.name).symlink_to(results)
assert isinstance(opt_results_dir, list), "opt_results_dir should be a list."
Expand Down

0 comments on commit a3d62f2

Please sign in to comment.