Skip to content

Commit

Permalink
bug_fix reproduce.py (#1156)
Browse files Browse the repository at this point in the history
previous natoms only count #atom of the first element, gives wrong
results or -inf in multiple-element cases

Signed-off-by: Wanrun Jiang <[email protected]>
  • Loading branch information
Vibsteamer authored Mar 19, 2023
1 parent 29a1bf8 commit 5503215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpgen/auto_test/reproduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def post_repro(
else:
nframe = len(init_task_result["energies"])
# idid += nframe
natoms = init_task_result["atom_numbs"][0]
natoms = np.sum(init_task_result["atom_numbs"])
if reprod_last_frame:
init_ener = init_task_result["energies"][-1:]
else:
Expand Down

0 comments on commit 5503215

Please sign in to comment.