Skip to content

Commit b73a49e

Browse files
authored
Merge pull request #354 from amcadmus/devel
dump the deepmd/npy data with only one set
2 parents f995ee5 + dc17bfc commit b73a49e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dpgen/collect/collect.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def collect_data(target_folder, param_file, output,
7878
# dump iter data
7979
for kk in coll_data.keys():
8080
out_dir = 'sys.%s' % kk
81-
coll_data[kk].to('deepmd/npy', os.path.join(output, out_dir))
81+
nframes = coll_data[kk].get_nframes()
82+
coll_data[kk].to('deepmd/npy', os.path.join(output, out_dir), set_size = nframes)
83+
# coll_data[kk].to('deepmd/npy', os.path.join(output, out_dir))
8284

8385
def gen_collect(args):
8486
collect_data(args.JOB_DIR, args.parameter, args.OUTPUT,

0 commit comments

Comments
 (0)