Replies: 1 comment
-
|
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to report a bug I found today. I apply cp2k AIMD trajectories as the dataset. I used to use the older version cp2k 5.1, and it worked well. Recently I switched to a newer version of cp2k 8.2, and when I tried to dump the data into 'deepmd/npy', it reported an error: nframes = data['cells'].shape[0] AttributeError: 'list' object has no attribute 'shape'.
After troubleshooting, I found that it is because the newer version cp2k will add two more lines of cell volume and one more line of cell lengths to the cell information section, which messes up the format.
This is the output from the newer version cp2k 8.2:
MD_INI| MD initializationMD_INI| Potential energy [hartree] -0.165294216820E+03MD_INI| Kinetic energy [hartree] 0.213760035672E-01MD_INI| Temperature [K] 300.000000MD_INI| Cell volume [bohr^3] 5.398667666472E+04MD_INI| Cell volume [ang^3] 8.000000000000E+03MD_INI| Cell lengths [bohr] 3.77945227E+01 3.77945227E+01 3.77945227E+01MD_INI| Cell lengths [ang] 2.00000000E+01 2.00000000E+01 2.00000000E+01MD_INI| Cell angles [deg] 9.00000000E+01 9.00000000E+01 9.00000000E+01This is the output from the older cp2k 5.1:
INITIAL POTENTIAL ENERGY[hartree] = -0.131804409525E+03INITIAL KINETIC ENERGY[hartree] = 0.142506690448E-01INITIAL TEMPERATURE[K] = 300.000INITIAL VOLUME[bohr^3] = 0.105442727861E+06INITIAL CELL LNTHS[bohr] = 0.4724315E+02 0.4724315E+02 0.4724315E+02INITIAL CELL ANGLS[deg] = 0.9000000E+02 0.9000000E+02 0.9000000E+02I manually deleted these additional lines and dpdata worked again.
I am using dpdata 0.2.5. I went to the Github homepage of dpdata, and I did not see this bug involved in the releases of the newer version. That is the reason why I would like to reach out to you and report this bug.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions