Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed Mar 19, 2024
1 parent 8534b12 commit 919f829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pt/model/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

def get_spin_model(model_params):
model_params = copy.deepcopy(model_params)
if model_params["spin"]["use_spin"] and isinstance(
if not model_params["spin"]["use_spin"] or isinstance(

Check warning on line 62 in deepmd/pt/model/model/__init__.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/model/model/__init__.py#L62

Added line #L62 was not covered by tests
model_params["spin"]["use_spin"][0], int
):
use_spin = np.full(len(model_params["type_map"]), False)
Expand Down

0 comments on commit 919f829

Please sign in to comment.