We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e9f730 commit 6c702d5Copy full SHA for 6c702d5
1 file changed
deepmd/pt_expt/infer/deep_eval.py
@@ -1098,7 +1098,7 @@ def _is_spin_model(self) -> bool:
1098
tests that construct a non-spin archive and then swap
1099
:attr:`_dpmodel` to a :class:`SpinModel` instance after load.
1100
"""
1101
- if bool(getattr(self, "_is_spin", False)):
+ if self._is_spin:
1102
return True
1103
if self._dpmodel is None:
1104
return False
0 commit comments