Skip to content

Commit 6dacfad

Browse files
authored
Merge pull request #199 from njzjz/patch-4
fix bug
2 parents c4e112a + 18d9f63 commit 6dacfad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpgen/simplify/simplify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def post_model_devi(iter_index, jdata, mdata):
255255
# dump the accurate data -- to another directory
256256
sys_data_path = os.path.join(work_path, accurate_data_name)
257257
sys_accurate.to_deepmd_raw(sys_data_path)
258-
sys_accurate.to_deepmd_npy(sys_data_path, set_size=rest_idx.size)
258+
sys_accurate.to_deepmd_npy(sys_data_path, set_size=sys_accurate.get_nframes())
259259

260260

261261
def make_fp(iter_index, jdata, mdata):

0 commit comments

Comments
 (0)