Perturb problem #381
Unanswered
yunjian-hash
asked this question in
Q&A
Replies: 1 comment
-
Thank you very much for reporting the bug. A quick fix is using
The fix is PRed as #383 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear developers,
When I use perturb funtion, I meet this error. what is the problem and how to solve this? Here are the dpdata.py and error. Thanks!
from dpdata import System, LabeledSystem, MultiSystems
import numpy as np
ls3=LabeledSystem('./Walker_2', fmt='cp2k/aimd_output')
a3 = np.random.choice(len(ls3),size=100,replace=False)
w3 = list(set(range(1,len(ls3)))-set(a3))[10:-1:6]
rs3=ls3.sub_system(w3)
perturbed_system_1 = rs3.perturb(pert_num=1, cell_pert_fraction=0.1, atom_pert_distance=0, atom_pert_style='normal')
ms= MultiSystems()
ms.append(rs3)
ms.append(perturbed_system_1)
ms.to_deepmd_raw('deepmd')
ms.to_deepmd_npy('deepmd',set_size=5000)
Beta Was this translation helpful? Give feedback.
All reactions