We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de735a7 commit 69189dbCopy full SHA for 69189db
1 file changed
deepmd/utils/update_sel.py
@@ -43,7 +43,9 @@ def update_one_sel(
43
sel = [int(self.wrap_up_4(ii * ratio)) for ii in tmp_sel]
44
else:
45
# sel is set by user
46
- for ii, (tt, dd) in enumerate(zip(tmp_sel, sel, strict=True)):
+ # TODO: Fix len(tmp_sel) != len(sel) for TF spin models when strict is True
47
+ # error reported by source/tests/tf/test_init_frz_model_spin.py
48
+ for ii, (tt, dd) in enumerate(zip(tmp_sel, sel, strict=False)):
49
if dd and tt > dd:
50
# we may skip warning for sel=0, where the user is likely
51
# to exclude such type in the descriptor
0 commit comments