Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 4, 2024
1 parent 7ead6b8 commit ad714ed
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
15 changes: 9 additions & 6 deletions dpgen/auto_test/Gamma.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,12 +472,15 @@ def _compute_lower(self, output_file, all_tasks, all_res):
)

miller_index = loadfn(os.path.join(ii, "miller.json"))
ptr_data += "%-25s %7.2f %7.3f %8.3f %8.3f\n" % ( # noqa: UP031
str(miller_index) + "-" + structure_dir + ":",
int(ii[-4:]) / self.n_steps,
sfe,
epa,
equi_epa_slab,
ptr_data += (
"%-25s %7.2f %7.3f %8.3f %8.3f\n"
% ( # noqa: UP031
str(miller_index) + "-" + structure_dir + ":",
int(ii[-4:]) / self.n_steps,
sfe,
epa,
equi_epa_slab,
)
)
res_data[int(ii[-4:]) / self.n_steps] = [sfe, epa, equi_epa]

Expand Down
15 changes: 10 additions & 5 deletions dpgen/auto_test/Interstitial.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ def make_confs(self, path_to_work, path_to_equi, refine=False):
os.chdir(cwd)

output_task2 = os.path.join(
path_to_work, "task.%06d" % (len(dss) + 1) # noqa: UP031
path_to_work,
"task.%06d" % (len(dss) + 1), # noqa: UP031
)
os.makedirs(output_task2, exist_ok=True)
os.chdir(output_task2)
Expand All @@ -305,7 +306,8 @@ def make_confs(self, path_to_work, path_to_equi, refine=False):
os.chdir(cwd)

output_task3 = os.path.join(
path_to_work, "task.%06d" % (len(dss) + 2) # noqa: UP031
path_to_work,
"task.%06d" % (len(dss) + 2), # noqa: UP031
)
os.makedirs(output_task3, exist_ok=True)
os.chdir(output_task3)
Expand Down Expand Up @@ -346,7 +348,8 @@ def make_confs(self, path_to_work, path_to_equi, refine=False):
replace_label = idx

output_task4 = os.path.join(
path_to_work, "task.%06d" % (len(dss) + 3) # noqa: UP031
path_to_work,
"task.%06d" % (len(dss) + 3), # noqa: UP031
)
os.makedirs(output_task4, exist_ok=True)
os.chdir(output_task4)
Expand Down Expand Up @@ -380,7 +383,8 @@ def make_confs(self, path_to_work, path_to_equi, refine=False):
os.chdir(cwd)

output_task5 = os.path.join(
path_to_work, "task.%06d" % (len(dss) + 4) # noqa: UP031
path_to_work,
"task.%06d" % (len(dss) + 4), # noqa: UP031
)
os.makedirs(output_task5, exist_ok=True)
os.chdir(output_task5)
Expand Down Expand Up @@ -414,7 +418,8 @@ def make_confs(self, path_to_work, path_to_equi, refine=False):
os.chdir(cwd)

output_task6 = os.path.join(
path_to_work, "task.%06d" % (len(dss) + 5) # noqa: UP031
path_to_work,
"task.%06d" % (len(dss) + 5), # noqa: UP031
)
os.makedirs(output_task6, exist_ok=True)
os.chdir(output_task6)
Expand Down
1 change: 1 addition & 0 deletions tests/generator/test_post_fp.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ def setUp(self):
"iter.000000/02.fp/data.000", fmt="deepmd/raw"
)


class TestPostCP2K(unittest.TestCase, CompLabeledSys):
def setUp(self):
self.places = 5
Expand Down

0 comments on commit ad714ed

Please sign in to comment.