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 Jan 15, 2025
1 parent f05f9ca commit 603c8c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dpdata/plugins/ase.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ def from_labeled_system(
dict_frames["energies"], tmp["energies"][0]
)
if "forces" in tmp.keys() and "forces" in dict_frames.keys():
dict_frames["forces"] = np.append(dict_frames["forces"], tmp["forces"][0])
dict_frames["forces"] = np.append(
dict_frames["forces"], tmp["forces"][0]
)
if "virials" in tmp.keys() and "virials" in dict_frames.keys():
dict_frames["virials"] = np.append(
dict_frames["virials"], tmp["virials"][0]
Expand Down

0 comments on commit 603c8c7

Please sign in to comment.