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 Nov 18, 2024
1 parent 4802a9a commit 3355f50
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
6 changes: 3 additions & 3 deletions deepmd/dpmodel/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
from deepmd.dpmodel.descriptor.base_descriptor import (
BaseDescriptor,
)
from deepmd.dpmodel.fitting.dos_fitting import (
DOSFittingNet,
)
from deepmd.dpmodel.fitting.ener_fitting import (
EnergyFittingNet,
)
from deepmd.dpmodel.fitting.dos_fitting import (
DOSFittingNet
)
from deepmd.dpmodel.model.base_model import (
BaseModel,
)
Expand Down
4 changes: 3 additions & 1 deletion source/tests/consistent/model/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
class ModelTest:
"""Useful utilities for model tests."""

def build_tf_model(self, obj, natoms, coords, atype, box, suffix, ret_key:str="energy"):
def build_tf_model(
self, obj, natoms, coords, atype, box, suffix, ret_key: str = "energy"
):
t_coord = tf.placeholder(
GLOBAL_TF_FLOAT_PRECISION, [None, None, None], name="i_coord"
)
Expand Down
10 changes: 2 additions & 8 deletions source/tests/consistent/model/test_dos.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_reference_backend(self):

@property
def skip_tf(self):
return True # need to fix tf consistency
return True # need to fix tf consistency

@property
def skip_jax(self) -> bool:
Expand Down Expand Up @@ -140,13 +140,7 @@ def setUp(self) -> None:

def build_tf(self, obj: Any, suffix: str) -> tuple[list, dict]:
return self.build_tf_model(
obj,
self.natoms,
self.coords,
self.atype,
self.box,
suffix,
ret_key = "dos"
obj, self.natoms, self.coords, self.atype, self.box, suffix, ret_key="dos"
)

def eval_dp(self, dp_obj: Any) -> Any:
Expand Down

0 comments on commit 3355f50

Please sign in to comment.