Skip to content

Commit

Permalink
Merge pull request #277 from amcadmus/devel
Browse files Browse the repository at this point in the history
fix bug in collect: set size should be equal to number of frames
  • Loading branch information
amcadmus authored Jun 3, 2020
2 parents d09681a + 0b48c9c commit 0ae4579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dpgen/collect/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def collect_data(target_folder, param_file, output,
# dump iter data
for kk in coll_data.keys():
out_dir = 'sys.%s' % kk
coll_data[kk].to('deepmd/npy', os.path.join(output, out_dir))
nframes = coll_data[kk].get_nframes()
coll_data[kk].to('deepmd/npy', os.path.join(output, out_dir), set_size = nframes)

def gen_collect(args):
collect_data(args.JOB_DIR, args.parameter, args.OUTPUT,
Expand Down

0 comments on commit 0ae4579

Please sign in to comment.