Skip to content

Fix len(tmp_sel) != len(sel) for TF spin models when strict is True #5151

@github-actions

Description

@github-actions

error reported by source/tests/tf/test_init_frz_model_spin.py

Line: 46

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 "

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions