Skip to content

Commit

Permalink
fix: atype should be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzyphysics committed Mar 25, 2024
1 parent 48f06fe commit 8244dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/infer/model_devi.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def calc_model_devi(
energies = []
forces = []
virials = []
natom = atype.shape[-1]
natom = np.array(atype).shape[-1]

Check warning on line 306 in deepmd/infer/model_devi.py

View check run for this annotation

Codecov / codecov/patch

deepmd/infer/model_devi.py#L306

Added line #L306 was not covered by tests
for dp in models:
ret = dp.eval(
coord,
Expand Down

0 comments on commit 8244dbc

Please sign in to comment.