Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang committed Dec 4, 2024
2 parents 7b4259e + b697ac0 commit a119931
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/generator/test_make_fp.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def _make_fake_md(idx, md_descript, atom_types, type_map, ele_temp=None):
task_dir = os.path.join(
"iter.%06d" % idx, # noqa: UP031
"01.model_devi",
"task.%03d.%06d" % (sidx, midx), # noqa: UP031 # noqa: UP031
"task.%03d.%06d" % (sidx, midx), # noqa: UP031
)
os.makedirs(os.path.join(task_dir, "traj"), exist_ok=True)
for ii in range(nframes):
Expand Down Expand Up @@ -306,7 +306,7 @@ def _make_fake_md_merge_traj(idx, md_descript, atom_types, type_map, ele_temp=No
task_dir = os.path.join(
"iter.%06d" % idx, # noqa: UP031
"01.model_devi",
"task.%03d.%06d" % (sidx, midx), # noqa: UP031 # noqa: UP031
"task.%03d.%06d" % (sidx, midx), # noqa: UP031
)
cwd = os.getcwd()
os.makedirs(task_dir, exist_ok=True)
Expand Down Expand Up @@ -851,7 +851,7 @@ def test_make_fp_amber_diff(self):
task_dir = os.path.join(
"iter.%06d" % 0, # noqa: UP031
"01.model_devi",
"task.%03d.%06d" % (0, 0), # noqa: UP031 # noqa: UP031
"task.%03d.%06d" % (0, 0), # noqa: UP031
)
os.makedirs(task_dir, exist_ok=True)
with open(os.path.join(task_dir, "rc.mdout"), "w") as f:
Expand Down
4 changes: 2 additions & 2 deletions tests/generator/test_make_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def test_restart_from_iter(self):
"iter.%06d" % 0, # noqa: UP031
"01.model_devi",
"task.000.000000",
"rc.rst7", # noqa: UP031
"rc.rst7",
),
"w",
) as fw:
Expand All @@ -715,7 +715,7 @@ def test_restart_from_iter(self):
"iter.%06d" % 1, # noqa: UP031
"01.model_devi",
"task.000.000000",
"init.rst7", # noqa: UP031
"init.rst7",
)
) as f:
assert f.read() == restart_text
Expand Down
6 changes: 3 additions & 3 deletions tests/generator/test_make_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _make_fake_fp(iter_idx, sys_idx, nframes):
dirname = os.path.join(
"iter.%06d" % iter_idx, # noqa: UP031
"02.fp",
"task.%03d.%06d" % (sys_idx, ii), # noqa: UP031 # noqa: UP031
"task.%03d.%06d" % (sys_idx, ii), # noqa: UP031
)
os.makedirs(dirname, exist_ok=True)
dirname = os.path.join("iter.%06d" % iter_idx, "02.fp", "data.%03d" % sys_idx) # noqa: UP031 # noqa: UP031
Expand Down Expand Up @@ -549,7 +549,7 @@ def test_training_finetune_model(self):
"00.train",
"%03d" % ii, # noqa: UP031
"old",
"init.pb", # noqa: UP031
"init.pb",
)
)
)
Expand Down Expand Up @@ -604,7 +604,7 @@ def test_training_init_frozen_model(self):
"00.train",
"%03d" % ii, # noqa: UP031
"old",
"init.pb", # noqa: UP031
"init.pb",
)
)
)
Expand Down

0 comments on commit a119931

Please sign in to comment.