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 14, 2024
1 parent 8fec403 commit ba54bcc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deepmd/dpmodel/atomic_model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"DPDipoleAtomicModel",
"DPEnergyAtomicModel",
"DPPolarAtomicModel",
"DPPropertyAtomicModel",
"DPZBLLinearEnergyAtomicModel",
"LinearEnergyAtomicModel",
"PairTabAtomicModel",
"make_base_atomic_model",
"DPPropertyAtomicModel",
]
1 change: 1 addition & 0 deletions deepmd/dpmodel/atomic_model/property_atomic_model.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
import numpy as np

from deepmd.dpmodel.fitting.property_fitting import (
PropertyFittingNet,
)
Expand Down
4 changes: 2 additions & 2 deletions deepmd/entrypoints/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def test_property(
assert isinstance(property_name, list)
assert isinstance(property_dim, list)
assert sum(property_dim) == dp.task_dim
for (name, dim) in zip(property_name, property_dim):
for name, dim in zip(property_name, property_dim):
data.add(name, dim, atomic=False, must=True, high_prec=True)
if has_atom_property:
data.add(f"atom_{name}", dim, atomic=True, must=False, high_prec=True)
Expand Down Expand Up @@ -840,7 +840,7 @@ def test_property(

concat_property = []
concat_aproperty = []
for (name, dim) in zip(property_name, property_dim):
for name, dim in zip(property_name, property_dim):
test_data[name] = test_data[name].reshape([numb_test, dim])
test_data[f"atom_{name}"] = test_data[f"atom_{name}"].reshape(
[numb_test, natoms * dim]
Expand Down
2 changes: 1 addition & 1 deletion deepmd/pt/model/model/property_model.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
from typing import (
Optional,
Union
Union,
)

import torch
Expand Down

0 comments on commit ba54bcc

Please sign in to comment.