-
Notifications
You must be signed in to change notification settings - Fork 586
Open
Description
error reported by source/tests/tf/test_init_frz_model_spin.py
Line: 46
deepmd-kit/deepmd/utils/update_sel.py
Lines 43 to 53 in 7c043f0
| sel = [int(self.wrap_up_4(ii * ratio)) for ii in tmp_sel] | |
| else: | |
| # sel is set by user | |
| # TODO: Fix len(tmp_sel) != len(sel) for TF spin models when strict is True | |
| # error reported by source/tests/tf/test_init_frz_model_spin.py | |
| for ii, (tt, dd) in enumerate(zip(tmp_sel, sel, strict=False)): | |
| if dd and tt > dd: | |
| # we may skip warning for sel=0, where the user is likely | |
| # to exclude such type in the descriptor | |
| log.warning( | |
| f"sel of type {ii} is not enough! The expected value is " |