dpdata 0.2.16__tar.gz → 0.2.18__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (623) hide show
  1. dpdata-0.2.18/.github/ISSUE_TEMPLATE/bug_report.yml +49 -0
  2. dpdata-0.2.18/.github/ISSUE_TEMPLATE/config.yml +5 -0
  3. dpdata-0.2.18/.github/ISSUE_TEMPLATE/feature_request.yml +33 -0
  4. dpdata-0.2.18/.github/ISSUE_TEMPLATE/generic-issue.yml +39 -0
  5. dpdata-0.2.18/.github/dependabot.yml +7 -0
  6. {dpdata-0.2.16 → dpdata-0.2.18}/.github/workflows/test.yml +4 -2
  7. {dpdata-0.2.16 → dpdata-0.2.18}/.gitignore +1 -0
  8. {dpdata-0.2.16 → dpdata-0.2.18}/.pre-commit-config.yaml +5 -6
  9. {dpdata-0.2.16 → dpdata-0.2.18}/.readthedocs.yaml +3 -4
  10. dpdata-0.2.18/MANIFEST.in +3 -0
  11. {dpdata-0.2.16 → dpdata-0.2.18}/PKG-INFO +8 -3
  12. {dpdata-0.2.16 → dpdata-0.2.18}/README.md +5 -2
  13. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/__init__.py +13 -0
  14. dpdata-0.2.18/dpdata/_version.py +16 -0
  15. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/abacus/relax.py +20 -20
  16. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/abacus/scf.py +102 -22
  17. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/amber/mask.py +1 -0
  18. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/amber/md.py +3 -3
  19. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/cli.py +1 -0
  20. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/cp2k/output.py +9 -3
  21. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/deepmd/hdf5.py +10 -5
  22. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/deepmd/mixed.py +17 -1
  23. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/driver.py +3 -0
  24. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/format.py +1 -0
  25. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/gaussian/log.py +27 -0
  26. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/lammps/dump.py +2 -2
  27. dpdata-0.2.18/dpdata/openmx/omx.py +216 -0
  28. dpdata-0.2.18/dpdata/orca/output.py +64 -0
  29. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugin.py +3 -3
  30. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/ase.py +111 -1
  31. dpdata-0.2.18/dpdata/plugins/cp2k.py +51 -0
  32. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/deepmd.py +14 -10
  33. dpdata-0.2.18/dpdata/plugins/n2p2.py +195 -0
  34. dpdata-0.2.18/dpdata/plugins/openmx.py +70 -0
  35. dpdata-0.2.16/dpdata/plugins/psi4.py → dpdata-0.2.18/dpdata/plugins/orca.py +8 -9
  36. dpdata-0.2.18/dpdata/plugins/psi4.py +102 -0
  37. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/qe.py +3 -1
  38. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/vasp.py +7 -5
  39. dpdata-0.2.18/dpdata/psi4/input.py +57 -0
  40. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/psi4/output.py +9 -1
  41. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/pwmat/movement.py +2 -2
  42. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/qe/scf.py +7 -4
  43. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/system.py +60 -11
  44. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/utils.py +5 -0
  45. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/vasp/outcar.py +6 -1
  46. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/vasp/xml.py +8 -15
  47. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/xyz/quip_gap_xyz.py +1 -3
  48. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata.egg-info/PKG-INFO +8 -3
  49. dpdata-0.2.18/dpdata.egg-info/SOURCES.txt +124 -0
  50. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata.egg-info/requires.txt +2 -0
  51. {dpdata-0.2.16 → dpdata-0.2.18}/pyproject.toml +6 -2
  52. dpdata-0.2.16/.github/ISSUE_TEMPLATE/bug_report.md +0 -25
  53. dpdata-0.2.16/.github/ISSUE_TEMPLATE/feature_request.md +0 -21
  54. dpdata-0.2.16/.github/ISSUE_TEMPLATE/generic-issue.md +0 -17
  55. dpdata-0.2.16/.github/ISSUE_TEMPLATE/request-for-help.md +0 -21
  56. dpdata-0.2.16/docs/Makefile +0 -20
  57. dpdata-0.2.16/docs/cli.rst +0 -7
  58. dpdata-0.2.16/docs/conf.py +0 -204
  59. dpdata-0.2.16/docs/credits.rst +0 -4
  60. dpdata-0.2.16/docs/drivers.rst +0 -8
  61. dpdata-0.2.16/docs/formats.rst +0 -15
  62. dpdata-0.2.16/docs/index.rst +0 -29
  63. dpdata-0.2.16/docs/make_format.py +0 -386
  64. dpdata-0.2.16/docs/minimizers.rst +0 -8
  65. dpdata-0.2.16/docs/requirements.txt +0 -1
  66. dpdata-0.2.16/dpdata/_version.py +0 -4
  67. dpdata-0.2.16/dpdata/plugins/cp2k.py +0 -32
  68. dpdata-0.2.16/dpdata.egg-info/SOURCES.txt +0 -606
  69. dpdata-0.2.16/plugin_example/README.md +0 -25
  70. dpdata-0.2.16/plugin_example/dpdata_random/__init__.py +0 -32
  71. dpdata-0.2.16/plugin_example/pyproject.toml +0 -16
  72. dpdata-0.2.16/tests/.coverage +0 -0
  73. dpdata-0.2.16/tests/POSCAR +0 -17
  74. dpdata-0.2.16/tests/abacus.md/INPUT +0 -42
  75. dpdata-0.2.16/tests/abacus.md/OUT.abacus/MD_dump +0 -80
  76. dpdata-0.2.16/tests/abacus.md/OUT.abacus/running_md.log +0 -2284
  77. dpdata-0.2.16/tests/abacus.md/STRU +0 -32
  78. dpdata-0.2.16/tests/abacus.md/water_coord +0 -15
  79. dpdata-0.2.16/tests/abacus.md/water_force +0 -15
  80. dpdata-0.2.16/tests/abacus.md/water_virial +0 -15
  81. dpdata-0.2.16/tests/abacus.md.newversion/INPUT +0 -37
  82. dpdata-0.2.16/tests/abacus.md.newversion/OUT.Sn_nve/MD_dump +0 -847
  83. dpdata-0.2.16/tests/abacus.md.newversion/OUT.Sn_nve/running_md.log +0 -2954
  84. dpdata-0.2.16/tests/abacus.md.newversion/STRU +0 -84
  85. dpdata-0.2.16/tests/abacus.md.newversion/coord.ref +0 -704
  86. dpdata-0.2.16/tests/abacus.md.newversion/force.ref +0 -704
  87. dpdata-0.2.16/tests/abacus.md.newversion/virial.ref +0 -33
  88. dpdata-0.2.16/tests/abacus.md.nostress/INPUT +0 -26
  89. dpdata-0.2.16/tests/abacus.md.nostress/OUT.autotest/MD_dump +0 -44
  90. dpdata-0.2.16/tests/abacus.md.nostress/OUT.autotest/running_md.log +0 -527
  91. dpdata-0.2.16/tests/abacus.md.nostress/STRU +0 -19
  92. dpdata-0.2.16/tests/abacus.md.nostress/Si_coord +0 -8
  93. dpdata-0.2.16/tests/abacus.md.nostress/Si_force +0 -8
  94. dpdata-0.2.16/tests/abacus.md.unconv/INPUT +0 -29
  95. dpdata-0.2.16/tests/abacus.md.unconv/OUT.ABACUS/MD_dump +0 -176
  96. dpdata-0.2.16/tests/abacus.md.unconv/OUT.ABACUS/running_md.log +0 -5035
  97. dpdata-0.2.16/tests/abacus.md.unconv/STRU +0 -30
  98. dpdata-0.2.16/tests/abacus.md.unconv/water_coord +0 -30
  99. dpdata-0.2.16/tests/abacus.md.unconv/water_force +0 -30
  100. dpdata-0.2.16/tests/abacus.md.unconv/water_virial +0 -30
  101. dpdata-0.2.16/tests/abacus.relax/INPUT +0 -28
  102. dpdata-0.2.16/tests/abacus.relax/KPT +0 -4
  103. dpdata-0.2.16/tests/abacus.relax/OUT.abacus/INPUT +0 -250
  104. dpdata-0.2.16/tests/abacus.relax/OUT.abacus/STRU_ION_D +0 -25
  105. dpdata-0.2.16/tests/abacus.relax/OUT.abacus/STRU_READIN_ADJUST.cif +0 -22
  106. dpdata-0.2.16/tests/abacus.relax/OUT.abacus/running_cell-relax.log.abnormal +0 -1186
  107. dpdata-0.2.16/tests/abacus.relax/OUT.abacus/running_cell-relax.log.normal +0 -1187
  108. dpdata-0.2.16/tests/abacus.relax/STRU +0 -29
  109. dpdata-0.2.16/tests/abacus.relax/coord.ref +0 -15
  110. dpdata-0.2.16/tests/abacus.relax/force.ref +0 -15
  111. dpdata-0.2.16/tests/abacus.relax/stress.ref +0 -15
  112. dpdata-0.2.16/tests/abacus.relax/virial.ref +0 -15
  113. dpdata-0.2.16/tests/abacus.scf/INPUT.fail +0 -17
  114. dpdata-0.2.16/tests/abacus.scf/INPUT.ok +0 -17
  115. dpdata-0.2.16/tests/abacus.scf/OUT.ch4/running_scf.log +0 -599
  116. dpdata-0.2.16/tests/abacus.scf/OUT.ch4fail/running_scf.log +0 -598
  117. dpdata-0.2.16/tests/abacus.scf/STRU.ch4 +0 -28
  118. dpdata-0.2.16/tests/abacus.scf/ch4_coord +0 -5
  119. dpdata-0.2.16/tests/abacus.scf/ch4_force +0 -5
  120. dpdata-0.2.16/tests/abacus.scf/ch4_virial +0 -3
  121. dpdata-0.2.16/tests/abacus.scf/stru_test +0 -32
  122. dpdata-0.2.16/tests/amber/02_Heat.mden +0 -110
  123. dpdata-0.2.16/tests/amber/02_Heat.mdfrc +0 -0
  124. dpdata-0.2.16/tests/amber/02_Heat.nc +0 -0
  125. dpdata-0.2.16/tests/amber/02_Heat.parm7 +0 -3991
  126. dpdata-0.2.16/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/box.npy +0 -0
  127. dpdata-0.2.16/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/coord.npy +0 -0
  128. dpdata-0.2.16/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/energy.npy +0 -0
  129. dpdata-0.2.16/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/force.npy +0 -0
  130. dpdata-0.2.16/tests/amber/corr/dataset/C6H11HW192O6OW96P1/type.raw +0 -312
  131. dpdata-0.2.16/tests/amber/corr/dataset/C6H11HW192O6OW96P1/type_map.raw +0 -6
  132. dpdata-0.2.16/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/box.npy +0 -0
  133. dpdata-0.2.16/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/coord.npy +0 -0
  134. dpdata-0.2.16/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/energy.npy +0 -0
  135. dpdata-0.2.16/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/force.npy +0 -0
  136. dpdata-0.2.16/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/type.raw +0 -312
  137. dpdata-0.2.16/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/type_map.raw +0 -7
  138. dpdata-0.2.16/tests/amber/corr/dp_corr/set.000/box.npy +0 -0
  139. dpdata-0.2.16/tests/amber/corr/dp_corr/set.000/coord.npy +0 -0
  140. dpdata-0.2.16/tests/amber/corr/dp_corr/set.000/energy.npy +0 -0
  141. dpdata-0.2.16/tests/amber/corr/dp_corr/set.000/force.npy +0 -0
  142. dpdata-0.2.16/tests/amber/corr/dp_corr/type.raw +0 -6064
  143. dpdata-0.2.16/tests/amber/corr/dp_corr/type_map.raw +0 -7
  144. dpdata-0.2.16/tests/amber/corr/dp_hl/set.000/box.npy +0 -0
  145. dpdata-0.2.16/tests/amber/corr/dp_hl/set.000/coord.npy +0 -0
  146. dpdata-0.2.16/tests/amber/corr/dp_hl/set.000/energy.npy +0 -0
  147. dpdata-0.2.16/tests/amber/corr/dp_hl/set.000/force.npy +0 -0
  148. dpdata-0.2.16/tests/amber/corr/dp_hl/type.raw +0 -6064
  149. dpdata-0.2.16/tests/amber/corr/dp_hl/type_map.raw +0 -7
  150. dpdata-0.2.16/tests/amber/corr/dp_ll/set.000/box.npy +0 -0
  151. dpdata-0.2.16/tests/amber/corr/dp_ll/set.000/coord.npy +0 -0
  152. dpdata-0.2.16/tests/amber/corr/dp_ll/set.000/energy.npy +0 -0
  153. dpdata-0.2.16/tests/amber/corr/dp_ll/set.000/force.npy +0 -0
  154. dpdata-0.2.16/tests/amber/corr/dp_ll/type.raw +0 -6064
  155. dpdata-0.2.16/tests/amber/corr/dp_ll/type_map.raw +0 -7
  156. dpdata-0.2.16/tests/amber/corr/high_level.mdfrc +0 -0
  157. dpdata-0.2.16/tests/amber/corr/high_level.mdout +0 -500
  158. dpdata-0.2.16/tests/amber/corr/low_level.mdfrc +0 -0
  159. dpdata-0.2.16/tests/amber/corr/low_level.mdout +0 -508
  160. dpdata-0.2.16/tests/amber/corr/qmmm.parm7 +0 -12895
  161. dpdata-0.2.16/tests/amber/corr/rc.nc +0 -0
  162. dpdata-0.2.16/tests/amber/methane.mol +0 -14
  163. dpdata-0.2.16/tests/amber/sqm.in +0 -12
  164. dpdata-0.2.16/tests/amber/sqm_forces.out +0 -392
  165. dpdata-0.2.16/tests/amber/sqm_no_forces.out +0 -138
  166. dpdata-0.2.16/tests/amber/sqm_opt.out +0 -771
  167. dpdata-0.2.16/tests/ase_traj/Al0He4O0/box.raw +0 -1
  168. dpdata-0.2.16/tests/ase_traj/Al0He4O0/coord.raw +0 -1
  169. dpdata-0.2.16/tests/ase_traj/Al0He4O0/energy.raw +0 -1
  170. dpdata-0.2.16/tests/ase_traj/Al0He4O0/force.raw +0 -1
  171. dpdata-0.2.16/tests/ase_traj/Al0He4O0/type.raw +0 -4
  172. dpdata-0.2.16/tests/ase_traj/Al0He4O0/type_map.raw +0 -3
  173. dpdata-0.2.16/tests/ase_traj/Al0He4O0/virial.raw +0 -1
  174. dpdata-0.2.16/tests/ase_traj/Al2He1O3/box.raw +0 -1
  175. dpdata-0.2.16/tests/ase_traj/Al2He1O3/coord.raw +0 -1
  176. dpdata-0.2.16/tests/ase_traj/Al2He1O3/energy.raw +0 -1
  177. dpdata-0.2.16/tests/ase_traj/Al2He1O3/force.raw +0 -1
  178. dpdata-0.2.16/tests/ase_traj/Al2He1O3/type.raw +0 -6
  179. dpdata-0.2.16/tests/ase_traj/Al2He1O3/type_map.raw +0 -3
  180. dpdata-0.2.16/tests/ase_traj/Al2He1O3/virial.raw +0 -1
  181. dpdata-0.2.16/tests/ase_traj/Al2He2O3/box.raw +0 -1
  182. dpdata-0.2.16/tests/ase_traj/Al2He2O3/coord.raw +0 -1
  183. dpdata-0.2.16/tests/ase_traj/Al2He2O3/energy.raw +0 -1
  184. dpdata-0.2.16/tests/ase_traj/Al2He2O3/force.raw +0 -1
  185. dpdata-0.2.16/tests/ase_traj/Al2He2O3/type.raw +0 -7
  186. dpdata-0.2.16/tests/ase_traj/Al2He2O3/type_map.raw +0 -3
  187. dpdata-0.2.16/tests/ase_traj/Al2He2O3/virial.raw +0 -1
  188. dpdata-0.2.16/tests/ase_traj/Al4He0O6/box.raw +0 -1
  189. dpdata-0.2.16/tests/ase_traj/Al4He0O6/coord.raw +0 -1
  190. dpdata-0.2.16/tests/ase_traj/Al4He0O6/energy.raw +0 -1
  191. dpdata-0.2.16/tests/ase_traj/Al4He0O6/force.raw +0 -1
  192. dpdata-0.2.16/tests/ase_traj/Al4He0O6/type.raw +0 -10
  193. dpdata-0.2.16/tests/ase_traj/Al4He0O6/type_map.raw +0 -3
  194. dpdata-0.2.16/tests/ase_traj/Al4He0O6/virial.raw +0 -1
  195. dpdata-0.2.16/tests/ase_traj/Al4He2O6/box.raw +0 -1
  196. dpdata-0.2.16/tests/ase_traj/Al4He2O6/coord.raw +0 -1
  197. dpdata-0.2.16/tests/ase_traj/Al4He2O6/energy.raw +0 -1
  198. dpdata-0.2.16/tests/ase_traj/Al4He2O6/force.raw +0 -1
  199. dpdata-0.2.16/tests/ase_traj/Al4He2O6/type.raw +0 -12
  200. dpdata-0.2.16/tests/ase_traj/Al4He2O6/type_map.raw +0 -3
  201. dpdata-0.2.16/tests/ase_traj/Al4He2O6/virial.raw +0 -1
  202. dpdata-0.2.16/tests/ase_traj/Al4He4O6/box.raw +0 -1
  203. dpdata-0.2.16/tests/ase_traj/Al4He4O6/coord.raw +0 -1
  204. dpdata-0.2.16/tests/ase_traj/Al4He4O6/energy.raw +0 -1
  205. dpdata-0.2.16/tests/ase_traj/Al4He4O6/force.raw +0 -1
  206. dpdata-0.2.16/tests/ase_traj/Al4He4O6/type.raw +0 -14
  207. dpdata-0.2.16/tests/ase_traj/Al4He4O6/type_map.raw +0 -3
  208. dpdata-0.2.16/tests/ase_traj/Al4He4O6/virial.raw +0 -1
  209. dpdata-0.2.16/tests/ase_traj/Al8He0O12/box.raw +0 -3
  210. dpdata-0.2.16/tests/ase_traj/Al8He0O12/coord.raw +0 -3
  211. dpdata-0.2.16/tests/ase_traj/Al8He0O12/energy.raw +0 -3
  212. dpdata-0.2.16/tests/ase_traj/Al8He0O12/force.raw +0 -3
  213. dpdata-0.2.16/tests/ase_traj/Al8He0O12/type.raw +0 -20
  214. dpdata-0.2.16/tests/ase_traj/Al8He0O12/type_map.raw +0 -3
  215. dpdata-0.2.16/tests/ase_traj/Al8He0O12/virial.raw +0 -3
  216. dpdata-0.2.16/tests/ase_traj/Al8He4O12/box.raw +0 -1
  217. dpdata-0.2.16/tests/ase_traj/Al8He4O12/coord.raw +0 -1
  218. dpdata-0.2.16/tests/ase_traj/Al8He4O12/energy.raw +0 -1
  219. dpdata-0.2.16/tests/ase_traj/Al8He4O12/force.raw +0 -1
  220. dpdata-0.2.16/tests/ase_traj/Al8He4O12/type.raw +0 -24
  221. dpdata-0.2.16/tests/ase_traj/Al8He4O12/type_map.raw +0 -3
  222. dpdata-0.2.16/tests/ase_traj/Al8He4O12/virial.raw +0 -1
  223. dpdata-0.2.16/tests/ase_traj/Al8He8O12/box.raw +0 -1
  224. dpdata-0.2.16/tests/ase_traj/Al8He8O12/coord.raw +0 -1
  225. dpdata-0.2.16/tests/ase_traj/Al8He8O12/energy.raw +0 -1
  226. dpdata-0.2.16/tests/ase_traj/Al8He8O12/force.raw +0 -1
  227. dpdata-0.2.16/tests/ase_traj/Al8He8O12/type.raw +0 -28
  228. dpdata-0.2.16/tests/ase_traj/Al8He8O12/type_map.raw +0 -3
  229. dpdata-0.2.16/tests/ase_traj/Al8He8O12/virial.raw +0 -1
  230. dpdata-0.2.16/tests/ase_traj/HeAlO.traj +0 -0
  231. dpdata-0.2.16/tests/bond_order/BOH4-.mol +0 -22
  232. dpdata-0.2.16/tests/bond_order/C5H5-.mol +0 -25
  233. dpdata-0.2.16/tests/bond_order/CH3CC-.mol +0 -16
  234. dpdata-0.2.16/tests/bond_order/CH3NC.mol +0 -16
  235. dpdata-0.2.16/tests/bond_order/CH3NH3+.mol +0 -20
  236. dpdata-0.2.16/tests/bond_order/CH3NO2.mol +0 -18
  237. dpdata-0.2.16/tests/bond_order/CH3OAsO3_2-.mol +0 -22
  238. dpdata-0.2.16/tests/bond_order/CH3OH.mol +0 -16
  239. dpdata-0.2.16/tests/bond_order/CH3OPO3_2-.mol +0 -22
  240. dpdata-0.2.16/tests/bond_order/CH3PH3+.mol +0 -20
  241. dpdata-0.2.16/tests/bond_order/CH3SH.mol +0 -16
  242. dpdata-0.2.16/tests/bond_order/CH3SO3-.mol +0 -20
  243. dpdata-0.2.16/tests/bond_order/CH3_2SO.mol +0 -24
  244. dpdata-0.2.16/tests/bond_order/CH3_2SO2.mol +0 -26
  245. dpdata-0.2.16/tests/bond_order/OCH3+.mol +0 -30
  246. dpdata-0.2.16/tests/bond_order/arg.mol +0 -30
  247. dpdata-0.2.16/tests/bond_order/formal_charge.mol +0 -111
  248. dpdata-0.2.16/tests/bond_order/gly.mol +0 -24
  249. dpdata-0.2.16/tests/bond_order/methane.sdf +0 -60
  250. dpdata-0.2.16/tests/bond_order/methane_ethane.sdf +0 -72
  251. dpdata-0.2.16/tests/bond_order/oxpy.mol +0 -29
  252. dpdata-0.2.16/tests/bond_order/refined-set-ligands/obabel/1a4r_ligand_obabel.sdf +0 -107
  253. dpdata-0.2.16/tests/bond_order/refined-set-ligands/obabel/1ai5_ligand_obabel.sdf +0 -60
  254. dpdata-0.2.16/tests/bond_order/refined-set-ligands/obabel/1f5l_ligand_obabel.sdf +0 -70
  255. dpdata-0.2.16/tests/bond_order/refined-set-ligands/obabel/1m1b_ligand_obabel.sdf +0 -45
  256. dpdata-0.2.16/tests/bond_order/refined-set-ligands/obabel/1mue_ligand_obabel.sdf +0 -121
  257. dpdata-0.2.16/tests/bond_order/refined-set-ligands/obabel/1w4q_ligand_obabel.sdf +0 -84
  258. dpdata-0.2.16/tests/bond_order/refined-set-ligands/obabel/2e94_ligand_obabel.sdf +0 -113
  259. dpdata-0.2.16/tests/bond_order/refined-set-ligands/obabel/4xaq_ligand_obabel.sdf +0 -69
  260. dpdata-0.2.16/tests/bond_order/refined-set-ligands/obabel/4xtw_ligand_obabel.sdf +0 -161
  261. dpdata-0.2.16/tests/bond_order/refined-set-ligands/origin/1a4r_ligand.sdf +0 -107
  262. dpdata-0.2.16/tests/bond_order/refined-set-ligands/origin/1ai5_ligand.sdf +0 -59
  263. dpdata-0.2.16/tests/bond_order/refined-set-ligands/origin/1f5l_ligand.sdf +0 -69
  264. dpdata-0.2.16/tests/bond_order/refined-set-ligands/origin/1m1b_ligand.sdf +0 -44
  265. dpdata-0.2.16/tests/bond_order/refined-set-ligands/origin/1mue_ligand.sdf +0 -121
  266. dpdata-0.2.16/tests/bond_order/refined-set-ligands/origin/1w4q_ligand.sdf +0 -84
  267. dpdata-0.2.16/tests/bond_order/refined-set-ligands/origin/2e94_ligand.sdf +0 -113
  268. dpdata-0.2.16/tests/bond_order/refined-set-ligands/origin/4xaq_ligand.sdf +0 -68
  269. dpdata-0.2.16/tests/bond_order/refined-set-ligands/origin/4xtw_ligand.sdf +0 -161
  270. dpdata-0.2.16/tests/comp_sys.py +0 -124
  271. dpdata-0.2.16/tests/computed_structure_entry.json +0 -226
  272. dpdata-0.2.16/tests/context.py +0 -14
  273. dpdata-0.2.16/tests/cp2k/aimd/DPGEN-1.ener +0 -31
  274. dpdata-0.2.16/tests/cp2k/aimd/DPGEN-frc-1.xyz +0 -16050
  275. dpdata-0.2.16/tests/cp2k/aimd/DPGEN-pos-1.xyz +0 -16050
  276. dpdata-0.2.16/tests/cp2k/aimd/cp2k.log +0 -65942
  277. dpdata-0.2.16/tests/cp2k/aimd/deepmd/set.000/box.npy +0 -0
  278. dpdata-0.2.16/tests/cp2k/aimd/deepmd/set.000/coord.npy +0 -0
  279. dpdata-0.2.16/tests/cp2k/aimd/deepmd/set.000/energy.npy +0 -0
  280. dpdata-0.2.16/tests/cp2k/aimd/deepmd/set.000/force.npy +0 -0
  281. dpdata-0.2.16/tests/cp2k/aimd/deepmd/type.raw +0 -533
  282. dpdata-0.2.16/tests/cp2k/aimd/deepmd/type_map.raw +0 -4
  283. dpdata-0.2.16/tests/cp2k/aimd/input.inp +0 -679
  284. dpdata-0.2.16/tests/cp2k/aimd_stress/DPGEN-pos-1.xyz +0 -7
  285. dpdata-0.2.16/tests/cp2k/aimd_stress/cp2k.log +0 -1992
  286. dpdata-0.2.16/tests/cp2k/aimd_stress/deepmd/set.000/box.npy +0 -0
  287. dpdata-0.2.16/tests/cp2k/aimd_stress/deepmd/set.000/coord.npy +0 -0
  288. dpdata-0.2.16/tests/cp2k/aimd_stress/deepmd/set.000/energy.npy +0 -0
  289. dpdata-0.2.16/tests/cp2k/aimd_stress/deepmd/set.000/force.npy +0 -0
  290. dpdata-0.2.16/tests/cp2k/aimd_stress/deepmd/set.000/virial.npy +0 -0
  291. dpdata-0.2.16/tests/cp2k/aimd_stress/deepmd/type.raw +0 -5
  292. dpdata-0.2.16/tests/cp2k/aimd_stress/deepmd/type_map.raw +0 -2
  293. dpdata-0.2.16/tests/cp2k/aimd_stress/input.inp +0 -108
  294. dpdata-0.2.16/tests/cp2k/cp2k_duplicate_header/cp2k_output_duplicate_header +0 -2841
  295. dpdata-0.2.16/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/box.npy +0 -0
  296. dpdata-0.2.16/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/coord.npy +0 -0
  297. dpdata-0.2.16/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/energy.npy +0 -0
  298. dpdata-0.2.16/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/force.npy +0 -0
  299. dpdata-0.2.16/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/virial.npy +0 -0
  300. dpdata-0.2.16/tests/cp2k/cp2k_duplicate_header/deepmd/type.raw +0 -30
  301. dpdata-0.2.16/tests/cp2k/cp2k_duplicate_header/deepmd/type_map.raw +0 -3
  302. dpdata-0.2.16/tests/cp2k/cp2k_element_replace/cp2k_output_element_replace +0 -4541
  303. dpdata-0.2.16/tests/cp2k/cp2k_element_replace/deepmd/set.000/box.npy +0 -0
  304. dpdata-0.2.16/tests/cp2k/cp2k_element_replace/deepmd/set.000/coord.npy +0 -0
  305. dpdata-0.2.16/tests/cp2k/cp2k_element_replace/deepmd/set.000/energy.npy +0 -0
  306. dpdata-0.2.16/tests/cp2k/cp2k_element_replace/deepmd/set.000/force.npy +0 -0
  307. dpdata-0.2.16/tests/cp2k/cp2k_element_replace/deepmd/set.000/virial.npy +0 -0
  308. dpdata-0.2.16/tests/cp2k/cp2k_element_replace/deepmd/type.raw +0 -601
  309. dpdata-0.2.16/tests/cp2k/cp2k_element_replace/deepmd/type_map.raw +0 -4
  310. dpdata-0.2.16/tests/cp2k/cp2k_nocon_output +0 -4344
  311. dpdata-0.2.16/tests/cp2k/cp2k_normal_output/cp2k_output +0 -1657
  312. dpdata-0.2.16/tests/cp2k/cp2k_normal_output/deepmd/set.000/box.npy +0 -0
  313. dpdata-0.2.16/tests/cp2k/cp2k_normal_output/deepmd/set.000/coord.npy +0 -0
  314. dpdata-0.2.16/tests/cp2k/cp2k_normal_output/deepmd/set.000/energy.npy +0 -0
  315. dpdata-0.2.16/tests/cp2k/cp2k_normal_output/deepmd/set.000/force.npy +0 -0
  316. dpdata-0.2.16/tests/cp2k/cp2k_normal_output/deepmd/set.000/virial.npy +0 -0
  317. dpdata-0.2.16/tests/cp2k/cp2k_normal_output/deepmd/type.raw +0 -30
  318. dpdata-0.2.16/tests/cp2k/cp2k_normal_output/deepmd/type_map.raw +0 -3
  319. dpdata-0.2.16/tests/dftbplus/detailed.out +0 -88
  320. dpdata-0.2.16/tests/dftbplus/dftb_pin.hsd +0 -93
  321. dpdata-0.2.16/tests/fhi_aims/out_md +0 -1178
  322. dpdata-0.2.16/tests/fhi_aims/out_scf +0 -2228
  323. dpdata-0.2.16/tests/fhi_aims/output_multi_elements +0 -7209
  324. dpdata-0.2.16/tests/fhi_aims/ref_cell.txt +0 -3
  325. dpdata-0.2.16/tests/fhi_aims/ref_cell_md.txt +0 -9
  326. dpdata-0.2.16/tests/fhi_aims/ref_cell_md_m.txt +0 -19
  327. dpdata-0.2.16/tests/fhi_aims/ref_coord.txt +0 -2
  328. dpdata-0.2.16/tests/fhi_aims/ref_coord_md.txt +0 -9
  329. dpdata-0.2.16/tests/fhi_aims/ref_coord_md_m.txt +0 -480
  330. dpdata-0.2.16/tests/fhi_aims/ref_energy_md.txt +0 -3
  331. dpdata-0.2.16/tests/fhi_aims/ref_energy_md_m.txt +0 -6
  332. dpdata-0.2.16/tests/fhi_aims/ref_force.txt +0 -2
  333. dpdata-0.2.16/tests/fhi_aims/ref_force_md.txt +0 -9
  334. dpdata-0.2.16/tests/fhi_aims/ref_force_md_m.txt +0 -480
  335. dpdata-0.2.16/tests/gaussian/aimd_gaussian_CH4_output +0 -2615
  336. dpdata-0.2.16/tests/gaussian/h2pbc.gaussianlog +0 -301
  337. dpdata-0.2.16/tests/gaussian/largeforce.gaussianlog +0 -20857
  338. dpdata-0.2.16/tests/gaussian/methane.gaussianlog +0 -342
  339. dpdata-0.2.16/tests/gaussian/methane_reordered.gaussianlog +0 -342
  340. dpdata-0.2.16/tests/gaussian/methane_sub.gaussianlog +0 -339
  341. dpdata-0.2.16/tests/gaussian/noncoveraged.gaussianlog +0 -317
  342. dpdata-0.2.16/tests/gaussian/oxygen.gaussianlog +0 -1252
  343. dpdata-0.2.16/tests/gromacs/1h.gro +0 -12
  344. dpdata-0.2.16/tests/gromacs/1h.tri.gro +0 -12
  345. dpdata-0.2.16/tests/gromacs/case_for_format_atom_name.gro +0 -35
  346. dpdata-0.2.16/tests/gromacs/multi_frames.gro +0 -24
  347. dpdata-0.2.16/tests/lammps/traj_with_random_type_id.dump +0 -50
  348. dpdata-0.2.16/tests/plugin/dpdata_plugin_test/__init__.py +0 -16
  349. dpdata-0.2.16/tests/plugin/pyproject.toml +0 -17
  350. dpdata-0.2.16/tests/poscars/6362_OUTCAR +0 -3090
  351. dpdata-0.2.16/tests/poscars/CONTCAR.h2o.md +0 -43
  352. dpdata-0.2.16/tests/poscars/OUTCAR.Ge.vdw +0 -1616
  353. dpdata-0.2.16/tests/poscars/OUTCAR.ch4.1step +0 -710
  354. dpdata-0.2.16/tests/poscars/OUTCAR.ch4.ml +0 -3289
  355. dpdata-0.2.16/tests/poscars/OUTCAR.ch4.unconverged +0 -3133
  356. dpdata-0.2.16/tests/poscars/OUTCAR.h2o.md +0 -2902
  357. dpdata-0.2.16/tests/poscars/OUTCAR.h2o.md.10 +0 -6166
  358. dpdata-0.2.16/tests/poscars/POSCAR.P42nmc +0 -104
  359. dpdata-0.2.16/tests/poscars/POSCAR.P42nmc.replace +0 -104
  360. dpdata-0.2.16/tests/poscars/POSCAR.SiC +0 -16
  361. dpdata-0.2.16/tests/poscars/POSCAR.SiC.const +0 -16
  362. dpdata-0.2.16/tests/poscars/POSCAR.SiC.normal +0 -16
  363. dpdata-0.2.16/tests/poscars/POSCAR.SiC.replicate123 +0 -56
  364. dpdata-0.2.16/tests/poscars/POSCAR.SiC.uniform +0 -16
  365. dpdata-0.2.16/tests/poscars/POSCAR.h2o.md +0 -14
  366. dpdata-0.2.16/tests/poscars/POSCAR.h4o3 +0 -15
  367. dpdata-0.2.16/tests/poscars/POSCAR.oh.c +0 -11
  368. dpdata-0.2.16/tests/poscars/POSCAR.oh.d +0 -10
  369. dpdata-0.2.16/tests/poscars/POSCAR.oh.d.dup +0 -11
  370. dpdata-0.2.16/tests/poscars/conf.5.dump +0 -55
  371. dpdata-0.2.16/tests/poscars/conf.dump +0 -22
  372. dpdata-0.2.16/tests/poscars/conf.lmp +0 -12
  373. dpdata-0.2.16/tests/poscars/conf.waterion.lmp +0 -391
  374. dpdata-0.2.16/tests/poscars/conf2.dump +0 -11
  375. dpdata-0.2.16/tests/poscars/conf_s_su.dump +0 -22
  376. dpdata-0.2.16/tests/poscars/conf_unfold.dump +0 -22
  377. dpdata-0.2.16/tests/poscars/deepmd.h2o.md/box.raw +0 -3
  378. dpdata-0.2.16/tests/poscars/deepmd.h2o.md/coord.raw +0 -3
  379. dpdata-0.2.16/tests/poscars/deepmd.h2o.md/energy.raw +0 -3
  380. dpdata-0.2.16/tests/poscars/deepmd.h2o.md/force.raw +0 -3
  381. dpdata-0.2.16/tests/poscars/deepmd.h2o.md/type.raw +0 -6
  382. dpdata-0.2.16/tests/poscars/deepmd.h2o.md/virial.raw +0 -3
  383. dpdata-0.2.16/tests/poscars/h2o.md.json +0 -369
  384. dpdata-0.2.16/tests/poscars/poscar_ref_oh.py +0 -50
  385. dpdata-0.2.16/tests/poscars/shift_origin.dump +0 -26
  386. dpdata-0.2.16/tests/poscars/test_lammps_dump_s_su.py +0 -27
  387. dpdata-0.2.16/tests/poscars/vasprun.Ge.vdw.xml +0 -1468
  388. dpdata-0.2.16/tests/poscars/vasprun.h2o.md.10.xml +0 -2681
  389. dpdata-0.2.16/tests/poscars/vasprun.h2o.md.tribox.lower.xml +0 -2054
  390. dpdata-0.2.16/tests/poscars/vasprun.h2o.md.tribox.xml +0 -2010
  391. dpdata-0.2.16/tests/poscars/vasprun.h2o.md.xml +0 -1753
  392. dpdata-0.2.16/tests/psi4/psi4.out +0 -549
  393. dpdata-0.2.16/tests/pwmat/MOVEMENT +0 -27776
  394. dpdata-0.2.16/tests/pwmat/OUT.MLMD +0 -18
  395. dpdata-0.2.16/tests/pwmat/atom.config +0 -11
  396. dpdata-0.2.16/tests/pwmat/atom.config.oh +0 -8
  397. dpdata-0.2.16/tests/pwmat/conf.lmp +0 -12
  398. dpdata-0.2.16/tests/pwmat/config_ref_ch4.py +0 -59
  399. dpdata-0.2.16/tests/pwmat/config_ref_oh.py +0 -45
  400. dpdata-0.2.16/tests/pwmat/mlmd_cell +0 -3
  401. dpdata-0.2.16/tests/pwmat/mlmd_coord +0 -5
  402. dpdata-0.2.16/tests/pwmat/mlmd_force +0 -5
  403. dpdata-0.2.16/tests/pwmat/ref_cell +0 -3
  404. dpdata-0.2.16/tests/pwmat/ref_coord +0 -5
  405. dpdata-0.2.16/tests/pwmat/ref_force +0 -5
  406. dpdata-0.2.16/tests/pymatgen_data/FA-001.vasp +0 -16
  407. dpdata-0.2.16/tests/pymatgen_data/FA-001.xyz +0 -10
  408. dpdata-0.2.16/tests/pymatgen_data/mol2-new.vasp +0 -16
  409. dpdata-0.2.16/tests/pymatgen_data/mol2.vasp +0 -16
  410. dpdata-0.2.16/tests/qe.scf/01.in +0 -37
  411. dpdata-0.2.16/tests/qe.scf/01.out +0 -321
  412. dpdata-0.2.16/tests/qe.scf/02.in +0 -230
  413. dpdata-0.2.16/tests/qe.scf/02.out +0 -776
  414. dpdata-0.2.16/tests/qe.scf/Al.in +0 -43
  415. dpdata-0.2.16/tests/qe.scf/Al.out +0 -557
  416. dpdata-0.2.16/tests/qe.scf/ch4_coord +0 -5
  417. dpdata-0.2.16/tests/qe.scf/ch4_force +0 -5
  418. dpdata-0.2.16/tests/qe.scf/ch4_virial +0 -3
  419. dpdata-0.2.16/tests/qe.scf/h2o_cell +0 -3
  420. dpdata-0.2.16/tests/qe.scf/h2o_coord +0 -192
  421. dpdata-0.2.16/tests/qe.scf/h2o_force +0 -192
  422. dpdata-0.2.16/tests/qe.scf/h2o_virial +0 -3
  423. dpdata-0.2.16/tests/qe.traj/oh-md.evp +0 -2
  424. dpdata-0.2.16/tests/qe.traj/oh-md.for +0 -384
  425. dpdata-0.2.16/tests/qe.traj/oh-md.in +0 -256
  426. dpdata-0.2.16/tests/qe.traj/oh-md.pos +0 -384
  427. dpdata-0.2.16/tests/qe.traj/traj6.cel +0 -24
  428. dpdata-0.2.16/tests/qe.traj/traj6.evp +0 -7
  429. dpdata-0.2.16/tests/qe.traj/traj6.for +0 -18
  430. dpdata-0.2.16/tests/qe.traj/traj6.in +0 -67
  431. dpdata-0.2.16/tests/qe.traj/traj6.pos +0 -18
  432. dpdata-0.2.16/tests/siesta/aimd/cell +0 -19
  433. dpdata-0.2.16/tests/siesta/aimd/coord +0 -328
  434. dpdata-0.2.16/tests/siesta/aimd/energy +0 -5
  435. dpdata-0.2.16/tests/siesta/aimd/force +0 -326
  436. dpdata-0.2.16/tests/siesta/aimd/output +0 -1486
  437. dpdata-0.2.16/tests/siesta/aimd/virial +0 -21
  438. dpdata-0.2.16/tests/siesta/scf/ref_cell +0 -3
  439. dpdata-0.2.16/tests/siesta/scf/ref_coord +0 -5
  440. dpdata-0.2.16/tests/siesta/scf/ref_energy +0 -1
  441. dpdata-0.2.16/tests/siesta/scf/ref_force +0 -5
  442. dpdata-0.2.16/tests/siesta/scf/ref_virial +0 -3
  443. dpdata-0.2.16/tests/siesta/scf/siesta_output +0 -614
  444. dpdata-0.2.16/tests/test_abacus_md.py +0 -252
  445. dpdata-0.2.16/tests/test_abacus_pw_scf.py +0 -148
  446. dpdata-0.2.16/tests/test_abacus_relax.py +0 -110
  447. dpdata-0.2.16/tests/test_abacus_stru_dump.py +0 -29
  448. dpdata-0.2.16/tests/test_amber_md.py +0 -56
  449. dpdata-0.2.16/tests/test_amber_sqm.py +0 -81
  450. dpdata-0.2.16/tests/test_ase_traj.py +0 -47
  451. dpdata-0.2.16/tests/test_bond_order_system.py +0 -154
  452. dpdata-0.2.16/tests/test_cell_to_low_triangle.py +0 -67
  453. dpdata-0.2.16/tests/test_cli.py +0 -28
  454. dpdata-0.2.16/tests/test_corr.py +0 -53
  455. dpdata-0.2.16/tests/test_cp2k_aimd_output.py +0 -57
  456. dpdata-0.2.16/tests/test_cp2k_output.py +0 -73
  457. dpdata-0.2.16/tests/test_custom_data_type.py +0 -84
  458. dpdata-0.2.16/tests/test_deepmd_comp.py +0 -93
  459. dpdata-0.2.16/tests/test_deepmd_hdf5.py +0 -72
  460. dpdata-0.2.16/tests/test_deepmd_mixed.py +0 -316
  461. dpdata-0.2.16/tests/test_deepmd_raw.py +0 -193
  462. dpdata-0.2.16/tests/test_dftbplus.py +0 -58
  463. dpdata-0.2.16/tests/test_elements_index.py +0 -29
  464. dpdata-0.2.16/tests/test_empty.py +0 -33
  465. dpdata-0.2.16/tests/test_fhi_md_multi_elem_output.py +0 -62
  466. dpdata-0.2.16/tests/test_fhi_md_output.py +0 -60
  467. dpdata-0.2.16/tests/test_fhi_output.py +0 -76
  468. dpdata-0.2.16/tests/test_gaussian_driver.py +0 -128
  469. dpdata-0.2.16/tests/test_gaussian_gjf.py +0 -27
  470. dpdata-0.2.16/tests/test_gaussian_log.py +0 -107
  471. dpdata-0.2.16/tests/test_gromacs_gro.py +0 -154
  472. dpdata-0.2.16/tests/test_json.py +0 -28
  473. dpdata-0.2.16/tests/test_lammps_dump_idx.py +0 -27
  474. dpdata-0.2.16/tests/test_lammps_dump_shift_origin.py +0 -15
  475. dpdata-0.2.16/tests/test_lammps_dump_skipload.py +0 -20
  476. dpdata-0.2.16/tests/test_lammps_dump_to_system.py +0 -27
  477. dpdata-0.2.16/tests/test_lammps_dump_unfold.py +0 -37
  478. dpdata-0.2.16/tests/test_lammps_lmp_dump.py +0 -29
  479. dpdata-0.2.16/tests/test_lammps_lmp_to_system.py +0 -17
  480. dpdata-0.2.16/tests/test_lammps_read_from_trajs.py +0 -133
  481. dpdata-0.2.16/tests/test_msd.py +0 -31
  482. dpdata-0.2.16/tests/test_multisystems.py +0 -204
  483. dpdata-0.2.16/tests/test_periodic_table.py +0 -31
  484. dpdata-0.2.16/tests/test_perturb.py +0 -172
  485. dpdata-0.2.16/tests/test_pick_atom_idx.py +0 -49
  486. dpdata-0.2.16/tests/test_predict.py +0 -129
  487. dpdata-0.2.16/tests/test_psi4.py +0 -62
  488. dpdata-0.2.16/tests/test_pwmat_config_dump.py +0 -60
  489. dpdata-0.2.16/tests/test_pwmat_config_to_system.py +0 -36
  490. dpdata-0.2.16/tests/test_pwmat_mlmd.py +0 -63
  491. dpdata-0.2.16/tests/test_pwmat_movement.py +0 -67
  492. dpdata-0.2.16/tests/test_pymatgen_molecule.py +0 -39
  493. dpdata-0.2.16/tests/test_qe_cp_traj.py +0 -70
  494. dpdata-0.2.16/tests/test_qe_cp_traj_skipload.py +0 -75
  495. dpdata-0.2.16/tests/test_qe_pw_scf.py +0 -146
  496. dpdata-0.2.16/tests/test_qe_pw_scf_crystal_atomic_positions.py +0 -34
  497. dpdata-0.2.16/tests/test_qe_pw_scf_energy_bug.py +0 -25
  498. dpdata-0.2.16/tests/test_quip_gap_xyz.py +0 -118
  499. dpdata-0.2.16/tests/test_remove_atom_names.py +0 -22
  500. dpdata-0.2.16/tests/test_remove_outlier.py +0 -54
  501. dpdata-0.2.16/tests/test_remove_pbc.py +0 -49
  502. dpdata-0.2.16/tests/test_replace.py +0 -43
  503. dpdata-0.2.16/tests/test_replicate.py +0 -38
  504. dpdata-0.2.16/tests/test_shuffle.py +0 -24
  505. dpdata-0.2.16/tests/test_siesta_aiMD_output.py +0 -160
  506. dpdata-0.2.16/tests/test_siesta_output.py +0 -102
  507. dpdata-0.2.16/tests/test_split_dataset.py +0 -25
  508. dpdata-0.2.16/tests/test_sqm_driver.py +0 -34
  509. dpdata-0.2.16/tests/test_stat.py +0 -31
  510. dpdata-0.2.16/tests/test_system_append.py +0 -58
  511. dpdata-0.2.16/tests/test_system_apply_pbc.py +0 -33
  512. dpdata-0.2.16/tests/test_system_set_type.py +0 -35
  513. dpdata-0.2.16/tests/test_to_ase.py +0 -52
  514. dpdata-0.2.16/tests/test_to_list.py +0 -19
  515. dpdata-0.2.16/tests/test_to_pymatgen.py +0 -32
  516. dpdata-0.2.16/tests/test_to_pymatgen_entry.py +0 -33
  517. dpdata-0.2.16/tests/test_type_map.py +0 -40
  518. dpdata-0.2.16/tests/test_vasp_outcar.py +0 -117
  519. dpdata-0.2.16/tests/test_vasp_poscar_dump.py +0 -60
  520. dpdata-0.2.16/tests/test_vasp_poscar_to_system.py +0 -60
  521. dpdata-0.2.16/tests/test_vasp_unconverged_outcar.py +0 -27
  522. dpdata-0.2.16/tests/test_vasp_xml.py +0 -51
  523. dpdata-0.2.16/tests/test_water_ions.py +0 -65
  524. dpdata-0.2.16/tests/test_xyz.py +0 -44
  525. dpdata-0.2.16/tests/xyz/B1C9/box.raw +0 -2
  526. dpdata-0.2.16/tests/xyz/B1C9/coord.raw +0 -2
  527. dpdata-0.2.16/tests/xyz/B1C9/energy.raw +0 -2
  528. dpdata-0.2.16/tests/xyz/B1C9/force.raw +0 -2
  529. dpdata-0.2.16/tests/xyz/B1C9/type.raw +0 -10
  530. dpdata-0.2.16/tests/xyz/B1C9/type_map.raw +0 -2
  531. dpdata-0.2.16/tests/xyz/B1C9/virial.raw +0 -2
  532. dpdata-0.2.16/tests/xyz/B5C7/box.raw +0 -1
  533. dpdata-0.2.16/tests/xyz/B5C7/coord.raw +0 -1
  534. dpdata-0.2.16/tests/xyz/B5C7/energy.raw +0 -1
  535. dpdata-0.2.16/tests/xyz/B5C7/force.raw +0 -1
  536. dpdata-0.2.16/tests/xyz/B5C7/type.raw +0 -12
  537. dpdata-0.2.16/tests/xyz/B5C7/type_map.raw +0 -2
  538. dpdata-0.2.16/tests/xyz/B5C7/virial.raw +0 -1
  539. dpdata-0.2.16/tests/xyz/B5C7_novirials/box.raw +0 -1
  540. dpdata-0.2.16/tests/xyz/B5C7_novirials/coord.raw +0 -1
  541. dpdata-0.2.16/tests/xyz/B5C7_novirials/energy.raw +0 -1
  542. dpdata-0.2.16/tests/xyz/B5C7_novirials/force.raw +0 -1
  543. dpdata-0.2.16/tests/xyz/B5C7_novirials/type.raw +0 -12
  544. dpdata-0.2.16/tests/xyz/B5C7_novirials/type_map.raw +0 -2
  545. dpdata-0.2.16/tests/xyz/xyz_B5C7_novirials.xyz +0 -14
  546. dpdata-0.2.16/tests/xyz/xyz_unittest.field.xyz +0 -41
  547. dpdata-0.2.16/tests/xyz/xyz_unittest.sort.xyz +0 -38
  548. dpdata-0.2.16/tests/xyz/xyz_unittest.xyz +0 -38
  549. {dpdata-0.2.16 → dpdata-0.2.18}/.git-blame-ignore-revs +0 -0
  550. {dpdata-0.2.16 → dpdata-0.2.18}/.github/workflows/mirror_gitee.yml +0 -0
  551. {dpdata-0.2.16 → dpdata-0.2.18}/.github/workflows/pub-pypi.yml +0 -0
  552. {dpdata-0.2.16 → dpdata-0.2.18}/.github/workflows/test_import.yml +0 -0
  553. {dpdata-0.2.16 → dpdata-0.2.18}/LICENSE +0 -0
  554. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/__about__.py +0 -0
  555. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/abacus/__init__.py +0 -0
  556. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/abacus/md.py +0 -0
  557. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/amber/__init__.py +0 -0
  558. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/amber/sqm.py +0 -0
  559. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/ase_calculator.py +0 -0
  560. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/bond_order_system.py +0 -0
  561. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/cp2k/__init__.py +0 -0
  562. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/cp2k/cell.py +0 -0
  563. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/data_type.py +0 -0
  564. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/deepmd/__init__.py +0 -0
  565. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/deepmd/comp.py +0 -0
  566. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/deepmd/raw.py +0 -0
  567. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/dftbplus/__init__.py +0 -0
  568. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/dftbplus/output.py +0 -0
  569. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/fhi_aims/__init__.py +0 -0
  570. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/fhi_aims/output.py +0 -0
  571. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/gaussian/__init__.py +0 -0
  572. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/gaussian/gjf.py +0 -0
  573. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/gromacs/__init__.py +0 -0
  574. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/gromacs/gro.py +0 -0
  575. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/lammps/__init__.py +0 -0
  576. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/lammps/lmp.py +0 -0
  577. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/md/__init__.py +0 -0
  578. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/md/msd.py +0 -0
  579. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/md/pbc.py +0 -0
  580. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/md/rdf.py +0 -0
  581. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/md/water.py +0 -0
  582. {dpdata-0.2.16/dpdata/psi4 → dpdata-0.2.18/dpdata/openmx}/__init__.py +0 -0
  583. {dpdata-0.2.16/dpdata/pwmat → dpdata-0.2.18/dpdata/orca}/__init__.py +0 -0
  584. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/periodic_table.json +0 -0
  585. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/periodic_table.py +0 -0
  586. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/3dmol.py +0 -0
  587. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/__init__.py +0 -0
  588. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/abacus.py +0 -0
  589. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/amber.py +0 -0
  590. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/dftbplus.py +0 -0
  591. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/fhi_aims.py +0 -0
  592. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/gaussian.py +0 -0
  593. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/gromacs.py +0 -0
  594. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/lammps.py +0 -0
  595. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/list.py +0 -0
  596. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/pwmat.py +0 -0
  597. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/pymatgen.py +0 -0
  598. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/rdkit.py +0 -0
  599. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/siesta.py +0 -0
  600. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/plugins/xyz.py +0 -0
  601. {dpdata-0.2.16/dpdata/pymatgen → dpdata-0.2.18/dpdata/psi4}/__init__.py +0 -0
  602. {dpdata-0.2.16/dpdata/qe → dpdata-0.2.18/dpdata/pwmat}/__init__.py +0 -0
  603. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/pwmat/atomconfig.py +0 -0
  604. {dpdata-0.2.16/dpdata/rdkit → dpdata-0.2.18/dpdata/pymatgen}/__init__.py +0 -0
  605. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/pymatgen/molecule.py +0 -0
  606. {dpdata-0.2.16/dpdata/siesta → dpdata-0.2.18/dpdata/qe}/__init__.py +0 -0
  607. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/qe/traj.py +0 -0
  608. {dpdata-0.2.16/dpdata/vasp → dpdata-0.2.18/dpdata/rdkit}/__init__.py +0 -0
  609. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/rdkit/sanitize.py +0 -0
  610. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/rdkit/utils.py +0 -0
  611. {dpdata-0.2.16/dpdata/xyz → dpdata-0.2.18/dpdata/siesta}/__init__.py +0 -0
  612. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/siesta/aiMD_output.py +0 -0
  613. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/siesta/output.py +0 -0
  614. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/stat.py +0 -0
  615. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/unit.py +0 -0
  616. /dpdata-0.2.16/tests/amber/corr/dataset/C6H11HW192O6OW96P1/nopbc → /dpdata-0.2.18/dpdata/vasp/__init__.py +0 -0
  617. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/vasp/poscar.py +0 -0
  618. /dpdata-0.2.16/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/nopbc → /dpdata-0.2.18/dpdata/xyz/__init__.py +0 -0
  619. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata/xyz/xyz.py +0 -0
  620. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata.egg-info/dependency_links.txt +0 -0
  621. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata.egg-info/entry_points.txt +0 -0
  622. {dpdata-0.2.16 → dpdata-0.2.18}/dpdata.egg-info/top_level.txt +0 -0
  623. {dpdata-0.2.16 → dpdata-0.2.18}/setup.cfg +0 -0
@@ -0,0 +1,49 @@
1
+ name: Bug report
2
+ description: Create a bug report to help us eliminate issues and improve deepmd-kit.
3
+ title: "[BUG] "
4
+ labels: bug
5
+ assignees: []
6
+ body:
7
+ - type: textarea
8
+ id: summary
9
+ attributes:
10
+ label: Bug summary
11
+ description: Please provide a clear and concise description of what the bug is.
12
+ placeholder:
13
+ value:
14
+ validations:
15
+ required: true
16
+ - type: input
17
+ id: version
18
+ attributes:
19
+ label: dpdata Version
20
+ description: "`dpdata --version`"
21
+ validations:
22
+ required: true
23
+ - type: textarea
24
+ id: log
25
+ attributes:
26
+ label: Input Files, Running Commands, Error Log, etc.
27
+ description: "Please provide necessary information including input file, running commands, error log , etc., AS DETAILED AS POSSIBLE to help locate and reproduce your problem. WARNING: Do not use image to show error log! Paste texts in a code block instead."
28
+ placeholder:
29
+ value:
30
+ validations:
31
+ required: true
32
+ - type: textarea
33
+ id: reproduce
34
+ attributes:
35
+ label: Steps to Reproduce
36
+ description: "Describe the steps required to (quickly) reproduce the issue. You can attach (small) files to the section below or add URLs where to download an archive with all necessary files. Please try to create an input set that is as minimal and small as possible and reproduces the bug as quickly as possible. **NOTE:** the less effort and time it takes to reproduce your reported bug, the more likely it becomes, that somebody will look into it and fix the problem."
37
+ placeholder:
38
+ value:
39
+ validations:
40
+ required: true
41
+ - type: textarea
42
+ id: further
43
+ attributes:
44
+ label: Further Information, Files, and Links
45
+ description: Put any additional information here, attach relevant text or image files and URLs to external sites, e.g. relevant publications
46
+ placeholder:
47
+ value:
48
+ validations:
49
+ required: false
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Request for Help
4
+ url: https://github.com/deepmodeling/dpdata/discussions/new?category=q-a
5
+ about: If you have an usage question
@@ -0,0 +1,33 @@
1
+ name: Feature request
2
+ description: Suggest an idea for this project.
3
+ title: "[Feature Request] "
4
+ labels: enhancement
5
+ assignees: []
6
+ body:
7
+ - type: textarea
8
+ id: summary
9
+ attributes:
10
+ label: Summary
11
+ description: "Please provide a brief and concise description of the suggested feature or change"
12
+ placeholder:
13
+ value:
14
+ validations:
15
+ required: true
16
+ - type: textarea
17
+ id: details
18
+ attributes:
19
+ label: Detailed Description
20
+ description: "Please explain how you would like to see deepmd-kit enhanced, what feature(s) you are looking for, what specific problems this will solve. If possible, provide references to relevant background information like publications or web pages, and whether you are planning to implement the enhancement yourself or would like to participate in the implementation. If applicable add a reference to an existing bug report or issue that this will address."
21
+ placeholder:
22
+ value:
23
+ validations:
24
+ required: true
25
+ - type: textarea
26
+ id: further
27
+ attributes:
28
+ label: Further Information, Files, and Links
29
+ description: Put any additional information here, attach relevant text or image files and URLs to external sites, e.g. relevant publications
30
+ placeholder:
31
+ value:
32
+ validations:
33
+ required: false
@@ -0,0 +1,39 @@
1
+ name: Generic issue
2
+ description: For issues that do not fit any of the other categories.
3
+ labels: wontfix
4
+ assignees: []
5
+ body:
6
+ - type: textarea
7
+ id: summary
8
+ attributes:
9
+ label: Summary
10
+ description: "Please provide a clear and concise description of what the question is."
11
+ placeholder:
12
+ value:
13
+ validations:
14
+ required: true
15
+ - type: input
16
+ id: version
17
+ attributes:
18
+ label: dpdata Version
19
+ description: "`dpdata --version`"
20
+ validations:
21
+ required: true
22
+ - type: textarea
23
+ id: other-version
24
+ attributes:
25
+ label: Platform, Python Version, etc
26
+ description: "If applicable, specify what platform you are running on."
27
+ placeholder:
28
+ value:
29
+ validations:
30
+ required: false
31
+ - type: textarea
32
+ id: details
33
+ attributes:
34
+ label: Details
35
+ description: "Please explain the issue in detail here."
36
+ placeholder:
37
+ value:
38
+ validations:
39
+ required: true
@@ -0,0 +1,7 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ target-branch: "devel"
@@ -9,7 +9,7 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  strategy:
11
11
  matrix:
12
- python-version: [3.7, 3.8, 3.9]
12
+ python-version: ["3.7", "3.8", "3.12"]
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v2
@@ -26,7 +26,9 @@ jobs:
26
26
  - name: Test
27
27
  run: cd tests && coverage run --source=../dpdata -m unittest && cd .. && coverage combine tests/.coverage && coverage report
28
28
  - name: Run codecov
29
- uses: codecov/codecov-action@v3
29
+ uses: codecov/codecov-action@v4
30
+ env:
31
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
30
32
  pass:
31
33
  needs: [build]
32
34
  runs-on: ubuntu-latest
@@ -28,3 +28,4 @@ docs/drivers.csv
28
28
  docs/minimizers.csv
29
29
  docs/api/
30
30
  docs/formats/
31
+ .DS_Store
@@ -2,7 +2,7 @@
2
2
  # See https://pre-commit.com/hooks.html for more hooks
3
3
  repos:
4
4
  - repo: https://github.com/pre-commit/pre-commit-hooks
5
- rev: v4.4.0
5
+ rev: v4.5.0
6
6
  hooks:
7
7
  # there are many log files in tests
8
8
  # TODO: seperate py files and log files
@@ -17,16 +17,15 @@ repos:
17
17
  - id: check-symlinks
18
18
  - id: check-toml
19
19
  # Python
20
- - repo: https://github.com/psf/black
21
- rev: 23.7.0
22
- hooks:
23
- - id: black-jupyter
24
20
  - repo: https://github.com/astral-sh/ruff-pre-commit
25
21
  # Ruff version.
26
- rev: v0.0.287
22
+ rev: v0.3.5
27
23
  hooks:
28
24
  - id: ruff
29
25
  args: ["--fix"]
26
+ types_or: [python, pyi, jupyter]
27
+ - id: ruff-format
28
+ types_or: [python, pyi, jupyter]
30
29
  # numpydoc
31
30
  - repo: https://github.com/Carreau/velin
32
31
  rev: 0.0.12
@@ -3,10 +3,9 @@ version: 2
3
3
  build:
4
4
  os: ubuntu-22.04
5
5
  tools:
6
- python: "3.11"
6
+ python: "mambaforge-22.9"
7
+ conda:
8
+ environment: docs/rtd_environment.yml
7
9
  sphinx:
8
10
  configuration: docs/conf.py
9
11
  formats: all
10
- python:
11
- install:
12
- - requirements: docs/requirements.txt
@@ -0,0 +1,3 @@
1
+ prune docs
2
+ prune tests
3
+ prune plugin_example
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dpdata
3
- Version: 0.2.16
3
+ Version: 0.2.18
4
4
  Summary: Manipulating data formats of DeePMD-kit, VASP, QE, PWmat, and LAMMPS, etc.
5
5
  Author: DeepModeling
6
6
  Author-email: Han Wang <wang_han@iapcm.ac.cn>
@@ -205,6 +205,8 @@ Requires-Dist: m2r2; extra == "docs"
205
205
  Requires-Dist: deepmodeling-sphinx>=0.1.1; extra == "docs"
206
206
  Requires-Dist: sphinx-argparse; extra == "docs"
207
207
  Requires-Dist: rdkit; extra == "docs"
208
+ Requires-Dist: jupyterlite-sphinx; extra == "docs"
209
+ Requires-Dist: jupyterlite-xeus-python; extra == "docs"
208
210
 
209
211
  # dpdata
210
212
 
@@ -282,8 +284,10 @@ The `System` or `LabeledSystem` can be constructed from the following file forma
282
284
  | gaussian| log | True | True | LabeledSystem | 'gaussian/md' |
283
285
  | siesta | output | False | True | LabeledSystem | 'siesta/output'|
284
286
  | siesta | aimd_output | True | True | LabeledSystem | 'siesta/aimd_output' |
285
- | cp2k | output | False | True | LabeledSystem | 'cp2k/output' |
286
- | cp2k | aimd_output | True | True | LabeledSystem | 'cp2k/aimd_output' |
287
+ | cp2k(deprecated in future) | output | False | True | LabeledSystem | 'cp2k/output' |
288
+ | cp2k(deprecated in future) | aimd_output | True | True | LabeledSystem | 'cp2k/aimd_output' |
289
+ | cp2k([plug-in](https://github.com/robinzyb/cp2kdata#plug-in-for-dpdata)) | stdout | False | True | LabeledSystem | 'cp2kdata/e_f' |
290
+ | cp2k([plug-in](https://github.com/robinzyb/cp2kdata#plug-in-for-dpdata)) | stdout | True | True | LabeledSystem | 'cp2kdata/md' |
287
291
  | QE | log | False | True | LabeledSystem | 'qe/pw/scf' |
288
292
  | QE | log | True | False | System | 'qe/cp/traj' |
289
293
  | QE | log | True | True | LabeledSystem | 'qe/cp/traj' |
@@ -302,6 +306,7 @@ The `System` or `LabeledSystem` can be constructed from the following file forma
302
306
  | ABACUS | STRU | True | True | LabeledSystem | 'abacus/relax' |
303
307
  | ase | structure | True | True | MultiSystems | 'ase/structure' |
304
308
  | DFTB+ | dftbplus | False | True | LabeledSystem | 'dftbplus' |
309
+ | n2p2 | n2p2 | True | True | LabeledSystem | 'n2p2' |
305
310
 
306
311
 
307
312
  The Class `dpdata.MultiSystems` can read data from a dir which may contains many files of different systems, or from single xyz file which contains different systems.
@@ -74,8 +74,10 @@ The `System` or `LabeledSystem` can be constructed from the following file forma
74
74
  | gaussian| log | True | True | LabeledSystem | 'gaussian/md' |
75
75
  | siesta | output | False | True | LabeledSystem | 'siesta/output'|
76
76
  | siesta | aimd_output | True | True | LabeledSystem | 'siesta/aimd_output' |
77
- | cp2k | output | False | True | LabeledSystem | 'cp2k/output' |
78
- | cp2k | aimd_output | True | True | LabeledSystem | 'cp2k/aimd_output' |
77
+ | cp2k(deprecated in future) | output | False | True | LabeledSystem | 'cp2k/output' |
78
+ | cp2k(deprecated in future) | aimd_output | True | True | LabeledSystem | 'cp2k/aimd_output' |
79
+ | cp2k([plug-in](https://github.com/robinzyb/cp2kdata#plug-in-for-dpdata)) | stdout | False | True | LabeledSystem | 'cp2kdata/e_f' |
80
+ | cp2k([plug-in](https://github.com/robinzyb/cp2kdata#plug-in-for-dpdata)) | stdout | True | True | LabeledSystem | 'cp2kdata/md' |
79
81
  | QE | log | False | True | LabeledSystem | 'qe/pw/scf' |
80
82
  | QE | log | True | False | System | 'qe/cp/traj' |
81
83
  | QE | log | True | True | LabeledSystem | 'qe/cp/traj' |
@@ -94,6 +96,7 @@ The `System` or `LabeledSystem` can be constructed from the following file forma
94
96
  | ABACUS | STRU | True | True | LabeledSystem | 'abacus/relax' |
95
97
  | ase | structure | True | True | MultiSystems | 'ase/structure' |
96
98
  | DFTB+ | dftbplus | False | True | LabeledSystem | 'dftbplus' |
99
+ | n2p2 | n2p2 | True | True | LabeledSystem | 'n2p2' |
97
100
 
98
101
 
99
102
  The Class `dpdata.MultiSystems` can read data from a dir which may contains many files of different systems, or from single xyz file which contains different systems.
@@ -1,3 +1,16 @@
1
+ # monty needs lzma
2
+ # See https://github.com/pandas-dev/pandas/pull/27882
3
+ try:
4
+ import lzma # noqa: F401
5
+ except ImportError:
6
+
7
+ class fakemodule:
8
+ pass
9
+
10
+ import sys
11
+
12
+ sys.modules["lzma"] = fakemodule
13
+
1
14
  from . import lammps, md, vasp
2
15
  from .system import LabeledSystem, MultiSystems, System
3
16
 
@@ -0,0 +1,16 @@
1
+ # file generated by setuptools_scm
2
+ # don't change, don't track in version control
3
+ TYPE_CHECKING = False
4
+ if TYPE_CHECKING:
5
+ from typing import Tuple, Union
6
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
7
+ else:
8
+ VERSION_TUPLE = object
9
+
10
+ version: str
11
+ __version__: str
12
+ __version_tuple__: VERSION_TUPLE
13
+ version_tuple: VERSION_TUPLE
14
+
15
+ __version__ = version = '0.2.18'
16
+ __version_tuple__ = version_tuple = (0, 2, 18)
@@ -2,7 +2,15 @@ import os
2
2
 
3
3
  import numpy as np
4
4
 
5
- from .scf import bohr2ang, get_cell, get_coords, get_geometry_in, kbar2evperang3
5
+ from .scf import (
6
+ bohr2ang,
7
+ collect_force,
8
+ collect_stress,
9
+ get_cell,
10
+ get_coords,
11
+ get_geometry_in,
12
+ kbar2evperang3,
13
+ )
6
14
 
7
15
  # Read in geometries from an ABACUS RELAX(CELL-RELAX) trajectory in OUT.XXXX/runnning_relax/cell-relax.log.
8
16
 
@@ -40,8 +48,6 @@ def get_coords_from_log(loglines, natoms):
40
48
  energy = []
41
49
  cells = []
42
50
  coords = []
43
- force = []
44
- stress = []
45
51
  coord_direct = [] # if the coordinate is direct type or not
46
52
 
47
53
  for i in range(len(loglines)):
@@ -91,18 +97,8 @@ def get_coords_from_log(loglines, natoms):
91
97
  # get the energy of current structure
92
98
  energy.append(float(line.split()[-2]))
93
99
 
94
- elif line[4:15] == "TOTAL-FORCE":
95
- force.append([])
96
- for j in range(5, 5 + natoms):
97
- force[-1].append(
98
- list(map(lambda x: float(x), loglines[i + j].split()[1:4]))
99
- )
100
- elif line[1:13] == "TOTAL-STRESS":
101
- stress.append([])
102
- for j in range(4, 7):
103
- stress[-1].append(
104
- list(map(lambda x: float(x), loglines[i + j].split()[0:3]))
105
- )
100
+ force = collect_force(loglines)
101
+ stress = collect_stress(loglines)
106
102
 
107
103
  # delete last structures which has no energy
108
104
  while len(energy) < len(coords):
@@ -158,10 +154,13 @@ def get_coords_from_log(loglines, natoms):
158
154
  cells *= bohr2ang
159
155
  coords *= bohr2ang
160
156
 
161
- virial = np.zeros([len(cells), 3, 3])
162
- for i in range(len(cells)):
163
- volume = np.linalg.det(cells[i, :, :].reshape([3, 3]))
164
- virial[i] = stress[i] * kbar2evperang3 * volume
157
+ if len(stress) > 0:
158
+ virial = np.zeros([len(cells), 3, 3])
159
+ for i in range(len(cells)):
160
+ volume = np.linalg.det(cells[i, :, :].reshape([3, 3]))
161
+ virial[i] = stress[i] * kbar2evperang3 * volume
162
+ else:
163
+ virial = None
165
164
 
166
165
  return energy, cells, coords, force, stress, virial
167
166
 
@@ -203,7 +202,8 @@ def get_frame(fname):
203
202
  data["coords"] = coords
204
203
  data["energies"] = energy
205
204
  data["forces"] = force
206
- data["virials"] = virial
205
+ if isinstance(virial, np.ndarray):
206
+ data["virials"] = virial
207
207
  data["stress"] = stress
208
208
  data["orig"] = np.zeros(3)
209
209
 
@@ -1,5 +1,6 @@
1
1
  import os
2
2
  import re
3
+ import warnings
3
4
 
4
5
  import numpy as np
5
6
 
@@ -9,6 +10,16 @@ bohr2ang = LengthConversion("bohr", "angstrom").value()
9
10
  ry2ev = EnergyConversion("rydberg", "eV").value()
10
11
  kbar2evperang3 = PressureConversion("kbar", "eV/angstrom^3").value()
11
12
 
13
+ ABACUS_STRU_KEYS = [
14
+ "ATOMIC_SPECIES",
15
+ "NUMERICAL_ORBITAL",
16
+ "LATTICE_CONSTANT",
17
+ "LATTICE_VECTORS",
18
+ "ATOMIC_POSITIONS",
19
+ "NUMERICAL_DESCRIPTOR",
20
+ "PAW_FILES",
21
+ ]
22
+
12
23
 
13
24
  def CheckFile(ifile):
14
25
  if not os.path.isfile(ifile):
@@ -42,6 +53,29 @@ def get_block(lines, keyword, skip=0, nlines=None):
42
53
  return ret
43
54
 
44
55
 
56
+ def get_stru_block(lines, keyword):
57
+ # return the block of lines after keyword in STRU file, and skip the blank lines
58
+
59
+ def clean_comment(line):
60
+ return re.split("[#]", line)[0]
61
+
62
+ ret = []
63
+ found = False
64
+ for i in range(len(lines)):
65
+ if clean_comment(lines[i]).strip() == keyword:
66
+ found = True
67
+ for j in range(i + 1, len(lines)):
68
+ if clean_comment(lines[j]).strip() == "":
69
+ continue
70
+ elif clean_comment(lines[j]).strip() in ABACUS_STRU_KEYS:
71
+ break
72
+ else:
73
+ ret.append(clean_comment(lines[j]))
74
+ if not found:
75
+ return None
76
+ return ret
77
+
78
+
45
79
  def get_geometry_in(fname, inlines):
46
80
  geometry_path_in = os.path.join(fname, "STRU")
47
81
  for line in inlines:
@@ -63,8 +97,8 @@ def get_path_out(fname, inlines):
63
97
 
64
98
 
65
99
  def get_cell(geometry_inlines):
66
- cell_lines = get_block(geometry_inlines, "LATTICE_VECTORS", skip=0, nlines=3)
67
- celldm_lines = get_block(geometry_inlines, "LATTICE_CONSTANT", skip=0, nlines=1)
100
+ cell_lines = get_stru_block(geometry_inlines, "LATTICE_VECTORS")
101
+ celldm_lines = get_stru_block(geometry_inlines, "LATTICE_CONSTANT")
68
102
 
69
103
  celldm = float(celldm_lines[0].split()[0]) * bohr2ang # lattice const is in Bohr
70
104
  cell = []
@@ -75,7 +109,7 @@ def get_cell(geometry_inlines):
75
109
 
76
110
 
77
111
  def get_coords(celldm, cell, geometry_inlines, inlines=None):
78
- coords_lines = get_block(geometry_inlines, "ATOMIC_POSITIONS", skip=0)
112
+ coords_lines = get_stru_block(geometry_inlines, "ATOMIC_POSITIONS")
79
113
  # assuming that ATOMIC_POSITIONS is at the bottom of the STRU file
80
114
  coord_type = coords_lines[0].split()[0].lower() # cartisan or direct
81
115
  atom_names = [] # element abbr in periodic table
@@ -123,33 +157,79 @@ def get_energy(outlines):
123
157
  return Etot, False
124
158
 
125
159
 
126
- def get_force(outlines, natoms):
160
+ def collect_force(outlines):
127
161
  force = []
128
- force_inlines = get_block(
129
- outlines, "TOTAL-FORCE (eV/Angstrom)", skip=4, nlines=np.sum(natoms)
130
- )
131
- if force_inlines is None:
132
- print(
133
- "TOTAL-FORCE (eV/Angstrom) is not found in OUT.XXX/running_scf.log. May be you haven't set 'cal_force 1' in the INPUT."
134
- )
162
+ for i, line in enumerate(outlines):
163
+ if "TOTAL-FORCE (eV/Angstrom)" in line:
164
+ value_pattern = re.compile(
165
+ r"^\s*[A-Z][a-z]?[1-9][0-9]*\s+[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s+[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s+[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$"
166
+ )
167
+ j = i
168
+ # find the first line of force
169
+ noforce = False
170
+ while not value_pattern.match(outlines[j]):
171
+ j += 1
172
+ if (
173
+ j >= i + 10
174
+ ): # if can not find the first line of force in 10 lines, then stop
175
+ warnings.warn("Warning: can not find the first line of force")
176
+ noforce = True
177
+ break
178
+ if noforce:
179
+ break
180
+
181
+ force.append([])
182
+ while value_pattern.match(outlines[j]):
183
+ force[-1].append([float(ii) for ii in outlines[j].split()[1:4]])
184
+ j += 1
185
+ return force # only return the last force
186
+
187
+
188
+ def get_force(outlines, natoms):
189
+ force = collect_force(outlines)
190
+ if len(force) == 0:
135
191
  return [[]]
136
- for line in force_inlines:
137
- force.append([float(f) for f in line.split()[1:4]])
138
- force = np.array(force)
139
- return force
192
+ else:
193
+ return np.array(force[-1]) # only return the last force
140
194
 
141
195
 
142
- def get_stress(outlines):
196
+ def collect_stress(outlines):
143
197
  stress = []
144
- stress_inlines = get_block(outlines, "TOTAL-STRESS (KBAR)", skip=3, nlines=3)
145
- if stress_inlines is None:
146
- return None
147
- for line in stress_inlines:
148
- stress.append([float(f) for f in line.split()])
149
- stress = np.array(stress) * kbar2evperang3
198
+ for i, line in enumerate(outlines):
199
+ if "TOTAL-STRESS (KBAR)" in line:
200
+ value_pattern = re.compile(
201
+ r"^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s+[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s+[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$"
202
+ )
203
+ j = i
204
+ nostress = False
205
+ while not value_pattern.match(outlines[j]):
206
+ j += 1
207
+ if (
208
+ j >= i + 10
209
+ ): # if can not find the first line of stress in 10 lines, then stop
210
+ warnings.warn("Warning: can not find the first line of stress")
211
+ nostress = True
212
+ break
213
+ if nostress:
214
+ break
215
+
216
+ stress.append([])
217
+ while value_pattern.match(outlines[j]):
218
+ stress[-1].append(
219
+ list(map(lambda x: float(x), outlines[j].split()[0:3]))
220
+ )
221
+ j += 1
150
222
  return stress
151
223
 
152
224
 
225
+ def get_stress(outlines):
226
+ stress = collect_stress(outlines)
227
+ if len(stress) == 0:
228
+ return None
229
+ else:
230
+ return np.array(stress[-1]) * kbar2evperang3 # only return the last stress
231
+
232
+
153
233
  def get_frame(fname):
154
234
  data = {
155
235
  "atom_names": [],
@@ -1,4 +1,5 @@
1
1
  """Amber mask."""
2
+
2
3
  try:
3
4
  import parmed
4
5
  except ImportError:
@@ -2,7 +2,7 @@ import os
2
2
  import re
3
3
 
4
4
  import numpy as np
5
- from scipy.io import netcdf
5
+ from scipy.io import netcdf_file
6
6
 
7
7
  from dpdata.amber.mask import pick_by_amber_mask
8
8
  from dpdata.unit import EnergyConversion
@@ -77,7 +77,7 @@ def read_amber_traj(
77
77
  for ii in use_element_symbols:
78
78
  amber_types[ii] = symbols[atomic_number[ii]]
79
79
 
80
- with netcdf.netcdf_file(nc_file, "r") as f:
80
+ with netcdf_file(nc_file, "r") as f:
81
81
  coords = np.array(f.variables["coordinates"][:])
82
82
  cell_lengths = np.array(f.variables["cell_lengths"][:])
83
83
  cell_angles = np.array(f.variables["cell_angles"][:])
@@ -92,7 +92,7 @@ def read_amber_traj(
92
92
  raise RuntimeError("Unsupported cells")
93
93
 
94
94
  if labeled:
95
- with netcdf.netcdf_file(mdfrc_file, "r") as f:
95
+ with netcdf_file(mdfrc_file, "r") as f:
96
96
  forces = np.array(f.variables["forces"][:])
97
97
 
98
98
  # load energy from mden_file or mdout_file
@@ -1,4 +1,5 @@
1
1
  """Command line interface for dpdata."""
2
+
2
3
  import argparse
3
4
  from typing import Optional
4
5
 
@@ -76,12 +76,14 @@ class Cp2kSystems:
76
76
  def get_log_block_generator(self):
77
77
  lines = []
78
78
  delimiter_flag = False
79
+ yield_flag = False
79
80
  while True:
80
81
  line = self.log_file_object.readline()
81
82
  if line:
82
83
  lines.append(line)
83
84
  if any(p.match(line) for p in delimiter_patterns):
84
85
  if delimiter_flag is True:
86
+ yield_flag = True
85
87
  yield lines
86
88
  lines = []
87
89
  delimiter_flag = False
@@ -91,17 +93,23 @@ class Cp2kSystems:
91
93
  if any(p.match(line) for p in avail_patterns):
92
94
  delimiter_flag = True
93
95
  else:
96
+ if not yield_flag:
97
+ raise StopIteration("None of the delimiter patterns are matched")
94
98
  break
95
99
  if delimiter_flag is True:
96
100
  raise RuntimeError("This file lacks some content, please check")
97
101
 
98
102
  def get_xyz_block_generator(self):
99
103
  p3 = re.compile(r"^\s*(\d+)\s*")
104
+ yield_flag = False
100
105
  while True:
101
106
  line = self.xyz_file_object.readline()
102
107
  if not line:
108
+ if not yield_flag:
109
+ raise StopIteration("None of the xyz patterns are matched")
103
110
  break
104
111
  if p3.match(line):
112
+ yield_flag = True
105
113
  atom_num = int(p3.match(line).group(1))
106
114
  lines = []
107
115
  lines.append(line)
@@ -109,9 +117,7 @@ class Cp2kSystems:
109
117
  lines.append(self.xyz_file_object.readline())
110
118
  if not lines[-1]:
111
119
  raise RuntimeError(
112
- "this xyz file may lack of lines, should be {};lines:{}".format(
113
- atom_num + 2, lines
114
- )
120
+ f"this xyz file may lack of lines, should be {atom_num + 2};lines:{lines}"
115
121
  )
116
122
  yield lines
117
123