Skip to content

Commit

Permalink
Merge pull request #354 from amcadmus/devel
Browse files Browse the repository at this point in the history
dump the deepmd/npy data with only one set
  • Loading branch information
amcadmus authored Feb 23, 2021
2 parents f995ee5 + dc17bfc commit b73a49e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dpgen/collect/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ 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)
# coll_data[kk].to('deepmd/npy', os.path.join(output, out_dir))

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

0 comments on commit b73a49e

Please sign in to comment.