Skip to content

Commit 6e7ec61

Browse files
authored
correct model path (#100)
1 parent 791ae20 commit 6e7ec61

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

dpti/hti.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ def run_task(task_dir, machine_file, task_name, no_dp=False):
14351435
command = (
14361436
f"{mdata['command']} -i in.lammps"
14371437
if no_dp
1438-
else f"ln -s ../../../graph.pb graph.pb; {mdata['command']} -i in.lammps"
1438+
else f"ln -s ../../graph.pb graph.pb; {mdata['command']} -i in.lammps"
14391439
)
14401440
task_list = [
14411441
Task(
@@ -1447,7 +1447,7 @@ def run_task(task_dir, machine_file, task_name, no_dp=False):
14471447
for ii in task_dir_list
14481448
]
14491449
if not no_dp:
1450-
submission.forward_common_files = ["graph.pb"]
1450+
submission.forward_common_files = [os.path.join(task_dir, "graph.pb")]
14511451

14521452
submission.register_task_list(task_list=task_list)
14531453
submission.run_submission()

dpti/ti.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,15 +922,15 @@ def run_task(task_name, machine_file):
922922

923923
task_list = [
924924
Task(
925-
command=f"ln -s ../../graph.pb graph.pb; {mdata['command']} -in in.lammps",
925+
command=f"ln -s ../graph.pb graph.pb; {mdata['command']} -in in.lammps",
926926
task_work_path=ii,
927927
forward_files=["in.lammps", "*.lmp"],
928928
backward_files=["log*", "final.lmp", "traj.dump"],
929929
)
930930
for ii in task_dir_list
931931
]
932932

933-
submission.forward_common_files = ["graph.pb"]
933+
submission.forward_common_files = [os.path.join(task_name, "graph.pb")]
934934
submission.register_task_list(task_list=task_list)
935935
submission.run_submission()
936936

0 commit comments

Comments
 (0)