Skip to content

Commit 6c702d5

Browse files
committed
fixup
1 parent 7e9f730 commit 6c702d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deepmd/pt_expt/infer/deep_eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ def _is_spin_model(self) -> bool:
10981098
tests that construct a non-spin archive and then swap
10991099
:attr:`_dpmodel` to a :class:`SpinModel` instance after load.
11001100
"""
1101-
if bool(getattr(self, "_is_spin", False)):
1101+
if self._is_spin:
11021102
return True
11031103
if self._dpmodel is None:
11041104
return False

0 commit comments

Comments
 (0)