Skip to content

Commit

Permalink
fix a bug in the number of frames for auto ratio (#1276)
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Jul 15, 2023
1 parent f2da7db commit a356e70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dpgen/generator/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ def make_train(iter_index, jdata, mdata):
nframes += dpdata.LabeledSystem(
sys_single, fmt="deepmd/npy"
).get_nframes()
if auto_ratio:
if ii == iter_index - 1:
number_new_frames += nframes
else:
number_old_frames += nframes
if auto_ratio:
if ii == iter_index - 1:
number_new_frames += nframes
else:
number_old_frames += nframes
if nframes < fp_task_min:
log_task(
"nframes (%d) in data sys %s is too small, skip" % (nframes, jj)
Expand Down

0 comments on commit a356e70

Please sign in to comment.