Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang committed Aug 22, 2024
2 parents 740a91a + 4967951 commit 710ae6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dpgen2/op/diffcsp_gen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import subprocess
from pathlib import (
Path,
)
Expand Down Expand Up @@ -90,8 +91,7 @@ def execute(
except ValueError:
raise RuntimeError("Path of DiffCSP model not provided.")
model_path = args[i + 1]
ret = os.system(cmd)
assert ret == 0, "Command '%s' failed." % cmd
subprocess.run(cmd, shell=True, check=True)
result_file = os.path.join(model_path, "eval_gen.pt")
task_dir = "diffcsp.%s" % ip["task_id"]
convert_pt_to_cif(result_file, task_dir)
Expand Down
3 changes: 1 addition & 2 deletions dpgen2/op/run_relax.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def execute(
with open(os.path.join("relax_trajs", fname), "rb") as f:
try:
data = pickle.load(f)
except:
except Exception:
traceback.print_exc()
continue
nsteps = len(data["energy"])
Expand Down Expand Up @@ -172,7 +172,6 @@ def execute(
header=header,
)
model_devis.append(model_devi_file)

return OPIO(
{
"trajs": trajs,
Expand Down

0 comments on commit 710ae6b

Please sign in to comment.