dpdata 0.2.17__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 (627) hide show
  1. dpdata-0.2.18/.github/dependabot.yml +7 -0
  2. {dpdata-0.2.17 → dpdata-0.2.18}/.github/workflows/test.yml +4 -2
  3. {dpdata-0.2.17 → dpdata-0.2.18}/.gitignore +1 -0
  4. {dpdata-0.2.17 → dpdata-0.2.18}/.pre-commit-config.yaml +4 -5
  5. dpdata-0.2.18/MANIFEST.in +3 -0
  6. {dpdata-0.2.17 → dpdata-0.2.18}/PKG-INFO +2 -1
  7. {dpdata-0.2.17 → dpdata-0.2.18}/README.md +1 -0
  8. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/_version.py +2 -2
  9. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/abacus/scf.py +36 -3
  10. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/amber/mask.py +1 -0
  11. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/cli.py +1 -0
  12. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/cp2k/output.py +1 -3
  13. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/deepmd/hdf5.py +1 -0
  14. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/driver.py +3 -0
  15. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/format.py +1 -0
  16. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/gaussian/log.py +27 -0
  17. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/lammps/dump.py +2 -2
  18. dpdata-0.2.18/dpdata/openmx/omx.py +216 -0
  19. dpdata-0.2.18/dpdata/orca/output.py +64 -0
  20. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugin.py +3 -3
  21. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/ase.py +111 -1
  22. dpdata-0.2.18/dpdata/plugins/n2p2.py +195 -0
  23. dpdata-0.2.18/dpdata/plugins/openmx.py +70 -0
  24. dpdata-0.2.17/dpdata/plugins/psi4.py → dpdata-0.2.18/dpdata/plugins/orca.py +8 -9
  25. dpdata-0.2.18/dpdata/plugins/psi4.py +102 -0
  26. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/qe.py +3 -1
  27. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/vasp.py +7 -5
  28. dpdata-0.2.18/dpdata/psi4/input.py +57 -0
  29. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/psi4/output.py +9 -1
  30. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/pwmat/movement.py +2 -2
  31. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/qe/scf.py +7 -4
  32. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/system.py +1 -3
  33. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/vasp/outcar.py +6 -1
  34. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/vasp/xml.py +8 -15
  35. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/xyz/quip_gap_xyz.py +1 -3
  36. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata.egg-info/PKG-INFO +2 -1
  37. dpdata-0.2.18/dpdata.egg-info/SOURCES.txt +124 -0
  38. {dpdata-0.2.17 → dpdata-0.2.18}/pyproject.toml +4 -2
  39. dpdata-0.2.17/docs/Makefile +0 -20
  40. dpdata-0.2.17/docs/cli.rst +0 -7
  41. dpdata-0.2.17/docs/conf.py +0 -209
  42. dpdata-0.2.17/docs/credits.rst +0 -4
  43. dpdata-0.2.17/docs/drivers.rst +0 -8
  44. dpdata-0.2.17/docs/environment.yml +0 -11
  45. dpdata-0.2.17/docs/formats.rst +0 -15
  46. dpdata-0.2.17/docs/index.rst +0 -30
  47. dpdata-0.2.17/docs/make_format.py +0 -386
  48. dpdata-0.2.17/docs/minimizers.rst +0 -8
  49. dpdata-0.2.17/docs/nb/OUTCAR +0 -2491
  50. dpdata-0.2.17/docs/nb/try_dpdata.ipynb +0 -73
  51. dpdata-0.2.17/docs/requirements.txt +0 -1
  52. dpdata-0.2.17/docs/rtd_environment.yml +0 -6
  53. dpdata-0.2.17/docs/try_dpdata.rst +0 -4
  54. dpdata-0.2.17/dpdata.egg-info/SOURCES.txt +0 -616
  55. dpdata-0.2.17/plugin_example/README.md +0 -25
  56. dpdata-0.2.17/plugin_example/dpdata_random/__init__.py +0 -32
  57. dpdata-0.2.17/plugin_example/pyproject.toml +0 -16
  58. dpdata-0.2.17/tests/.coverage +0 -0
  59. dpdata-0.2.17/tests/POSCAR +0 -17
  60. dpdata-0.2.17/tests/abacus.md/INPUT +0 -42
  61. dpdata-0.2.17/tests/abacus.md/OUT.abacus/MD_dump +0 -80
  62. dpdata-0.2.17/tests/abacus.md/OUT.abacus/running_md.log +0 -2284
  63. dpdata-0.2.17/tests/abacus.md/STRU +0 -32
  64. dpdata-0.2.17/tests/abacus.md/water_coord +0 -15
  65. dpdata-0.2.17/tests/abacus.md/water_force +0 -15
  66. dpdata-0.2.17/tests/abacus.md/water_virial +0 -15
  67. dpdata-0.2.17/tests/abacus.md.newversion/INPUT +0 -37
  68. dpdata-0.2.17/tests/abacus.md.newversion/OUT.Sn_nve/MD_dump +0 -847
  69. dpdata-0.2.17/tests/abacus.md.newversion/OUT.Sn_nve/running_md.log +0 -2954
  70. dpdata-0.2.17/tests/abacus.md.newversion/STRU +0 -84
  71. dpdata-0.2.17/tests/abacus.md.newversion/coord.ref +0 -704
  72. dpdata-0.2.17/tests/abacus.md.newversion/force.ref +0 -704
  73. dpdata-0.2.17/tests/abacus.md.newversion/virial.ref +0 -33
  74. dpdata-0.2.17/tests/abacus.md.nostress/INPUT +0 -26
  75. dpdata-0.2.17/tests/abacus.md.nostress/OUT.autotest/MD_dump +0 -44
  76. dpdata-0.2.17/tests/abacus.md.nostress/OUT.autotest/running_md.log +0 -527
  77. dpdata-0.2.17/tests/abacus.md.nostress/STRU +0 -19
  78. dpdata-0.2.17/tests/abacus.md.nostress/Si_coord +0 -8
  79. dpdata-0.2.17/tests/abacus.md.nostress/Si_force +0 -8
  80. dpdata-0.2.17/tests/abacus.md.unconv/INPUT +0 -29
  81. dpdata-0.2.17/tests/abacus.md.unconv/OUT.ABACUS/MD_dump +0 -176
  82. dpdata-0.2.17/tests/abacus.md.unconv/OUT.ABACUS/running_md.log +0 -5035
  83. dpdata-0.2.17/tests/abacus.md.unconv/STRU +0 -30
  84. dpdata-0.2.17/tests/abacus.md.unconv/water_coord +0 -30
  85. dpdata-0.2.17/tests/abacus.md.unconv/water_force +0 -30
  86. dpdata-0.2.17/tests/abacus.md.unconv/water_virial +0 -30
  87. dpdata-0.2.17/tests/abacus.relax/INPUT +0 -28
  88. dpdata-0.2.17/tests/abacus.relax/KPT +0 -4
  89. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/INPUT +0 -250
  90. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/STRU_ION_D +0 -25
  91. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/STRU_READIN_ADJUST.cif +0 -22
  92. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.abnormal +0 -1186
  93. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.normal +0 -1187
  94. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.nostress +0 -1397
  95. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.v341 +0 -1450
  96. dpdata-0.2.17/tests/abacus.relax/STRU +0 -29
  97. dpdata-0.2.17/tests/abacus.relax/STRU.Si +0 -24
  98. dpdata-0.2.17/tests/abacus.relax/coord.ref +0 -15
  99. dpdata-0.2.17/tests/abacus.relax/force.ref +0 -15
  100. dpdata-0.2.17/tests/abacus.relax/force.v341.ref +0 -8
  101. dpdata-0.2.17/tests/abacus.relax/stress.ref +0 -15
  102. dpdata-0.2.17/tests/abacus.relax/stress.v341.ref +0 -12
  103. dpdata-0.2.17/tests/abacus.relax/virial.ref +0 -15
  104. dpdata-0.2.17/tests/abacus.scf/INPUT.fail +0 -17
  105. dpdata-0.2.17/tests/abacus.scf/INPUT.ok +0 -17
  106. dpdata-0.2.17/tests/abacus.scf/OUT.ch4/running_scf.log +0 -599
  107. dpdata-0.2.17/tests/abacus.scf/OUT.ch4fail/running_scf.log +0 -598
  108. dpdata-0.2.17/tests/abacus.scf/STRU.ch4 +0 -28
  109. dpdata-0.2.17/tests/abacus.scf/ch4_coord +0 -5
  110. dpdata-0.2.17/tests/abacus.scf/ch4_force +0 -5
  111. dpdata-0.2.17/tests/abacus.scf/ch4_virial +0 -3
  112. dpdata-0.2.17/tests/abacus.scf/stru_test +0 -32
  113. dpdata-0.2.17/tests/amber/02_Heat.mden +0 -110
  114. dpdata-0.2.17/tests/amber/02_Heat.mdfrc +0 -0
  115. dpdata-0.2.17/tests/amber/02_Heat.nc +0 -0
  116. dpdata-0.2.17/tests/amber/02_Heat.parm7 +0 -3991
  117. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/box.npy +0 -0
  118. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/coord.npy +0 -0
  119. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/energy.npy +0 -0
  120. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/force.npy +0 -0
  121. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/type.raw +0 -312
  122. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/type_map.raw +0 -6
  123. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/box.npy +0 -0
  124. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/coord.npy +0 -0
  125. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/energy.npy +0 -0
  126. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/force.npy +0 -0
  127. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/type.raw +0 -312
  128. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/type_map.raw +0 -7
  129. dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/box.npy +0 -0
  130. dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/coord.npy +0 -0
  131. dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/energy.npy +0 -0
  132. dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/force.npy +0 -0
  133. dpdata-0.2.17/tests/amber/corr/dp_corr/type.raw +0 -6064
  134. dpdata-0.2.17/tests/amber/corr/dp_corr/type_map.raw +0 -7
  135. dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/box.npy +0 -0
  136. dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/coord.npy +0 -0
  137. dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/energy.npy +0 -0
  138. dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/force.npy +0 -0
  139. dpdata-0.2.17/tests/amber/corr/dp_hl/type.raw +0 -6064
  140. dpdata-0.2.17/tests/amber/corr/dp_hl/type_map.raw +0 -7
  141. dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/box.npy +0 -0
  142. dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/coord.npy +0 -0
  143. dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/energy.npy +0 -0
  144. dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/force.npy +0 -0
  145. dpdata-0.2.17/tests/amber/corr/dp_ll/type.raw +0 -6064
  146. dpdata-0.2.17/tests/amber/corr/dp_ll/type_map.raw +0 -7
  147. dpdata-0.2.17/tests/amber/corr/high_level.mdfrc +0 -0
  148. dpdata-0.2.17/tests/amber/corr/high_level.mdout +0 -500
  149. dpdata-0.2.17/tests/amber/corr/low_level.mdfrc +0 -0
  150. dpdata-0.2.17/tests/amber/corr/low_level.mdout +0 -508
  151. dpdata-0.2.17/tests/amber/corr/qmmm.parm7 +0 -12895
  152. dpdata-0.2.17/tests/amber/corr/rc.nc +0 -0
  153. dpdata-0.2.17/tests/amber/methane.mol +0 -14
  154. dpdata-0.2.17/tests/amber/sqm.in +0 -12
  155. dpdata-0.2.17/tests/amber/sqm_forces.out +0 -392
  156. dpdata-0.2.17/tests/amber/sqm_no_forces.out +0 -138
  157. dpdata-0.2.17/tests/amber/sqm_opt.out +0 -771
  158. dpdata-0.2.17/tests/ase_traj/Al0He4O0/box.raw +0 -1
  159. dpdata-0.2.17/tests/ase_traj/Al0He4O0/coord.raw +0 -1
  160. dpdata-0.2.17/tests/ase_traj/Al0He4O0/energy.raw +0 -1
  161. dpdata-0.2.17/tests/ase_traj/Al0He4O0/force.raw +0 -1
  162. dpdata-0.2.17/tests/ase_traj/Al0He4O0/type.raw +0 -4
  163. dpdata-0.2.17/tests/ase_traj/Al0He4O0/type_map.raw +0 -3
  164. dpdata-0.2.17/tests/ase_traj/Al0He4O0/virial.raw +0 -1
  165. dpdata-0.2.17/tests/ase_traj/Al2He1O3/box.raw +0 -1
  166. dpdata-0.2.17/tests/ase_traj/Al2He1O3/coord.raw +0 -1
  167. dpdata-0.2.17/tests/ase_traj/Al2He1O3/energy.raw +0 -1
  168. dpdata-0.2.17/tests/ase_traj/Al2He1O3/force.raw +0 -1
  169. dpdata-0.2.17/tests/ase_traj/Al2He1O3/type.raw +0 -6
  170. dpdata-0.2.17/tests/ase_traj/Al2He1O3/type_map.raw +0 -3
  171. dpdata-0.2.17/tests/ase_traj/Al2He1O3/virial.raw +0 -1
  172. dpdata-0.2.17/tests/ase_traj/Al2He2O3/box.raw +0 -1
  173. dpdata-0.2.17/tests/ase_traj/Al2He2O3/coord.raw +0 -1
  174. dpdata-0.2.17/tests/ase_traj/Al2He2O3/energy.raw +0 -1
  175. dpdata-0.2.17/tests/ase_traj/Al2He2O3/force.raw +0 -1
  176. dpdata-0.2.17/tests/ase_traj/Al2He2O3/type.raw +0 -7
  177. dpdata-0.2.17/tests/ase_traj/Al2He2O3/type_map.raw +0 -3
  178. dpdata-0.2.17/tests/ase_traj/Al2He2O3/virial.raw +0 -1
  179. dpdata-0.2.17/tests/ase_traj/Al4He0O6/box.raw +0 -1
  180. dpdata-0.2.17/tests/ase_traj/Al4He0O6/coord.raw +0 -1
  181. dpdata-0.2.17/tests/ase_traj/Al4He0O6/energy.raw +0 -1
  182. dpdata-0.2.17/tests/ase_traj/Al4He0O6/force.raw +0 -1
  183. dpdata-0.2.17/tests/ase_traj/Al4He0O6/type.raw +0 -10
  184. dpdata-0.2.17/tests/ase_traj/Al4He0O6/type_map.raw +0 -3
  185. dpdata-0.2.17/tests/ase_traj/Al4He0O6/virial.raw +0 -1
  186. dpdata-0.2.17/tests/ase_traj/Al4He2O6/box.raw +0 -1
  187. dpdata-0.2.17/tests/ase_traj/Al4He2O6/coord.raw +0 -1
  188. dpdata-0.2.17/tests/ase_traj/Al4He2O6/energy.raw +0 -1
  189. dpdata-0.2.17/tests/ase_traj/Al4He2O6/force.raw +0 -1
  190. dpdata-0.2.17/tests/ase_traj/Al4He2O6/type.raw +0 -12
  191. dpdata-0.2.17/tests/ase_traj/Al4He2O6/type_map.raw +0 -3
  192. dpdata-0.2.17/tests/ase_traj/Al4He2O6/virial.raw +0 -1
  193. dpdata-0.2.17/tests/ase_traj/Al4He4O6/box.raw +0 -1
  194. dpdata-0.2.17/tests/ase_traj/Al4He4O6/coord.raw +0 -1
  195. dpdata-0.2.17/tests/ase_traj/Al4He4O6/energy.raw +0 -1
  196. dpdata-0.2.17/tests/ase_traj/Al4He4O6/force.raw +0 -1
  197. dpdata-0.2.17/tests/ase_traj/Al4He4O6/type.raw +0 -14
  198. dpdata-0.2.17/tests/ase_traj/Al4He4O6/type_map.raw +0 -3
  199. dpdata-0.2.17/tests/ase_traj/Al4He4O6/virial.raw +0 -1
  200. dpdata-0.2.17/tests/ase_traj/Al8He0O12/box.raw +0 -3
  201. dpdata-0.2.17/tests/ase_traj/Al8He0O12/coord.raw +0 -3
  202. dpdata-0.2.17/tests/ase_traj/Al8He0O12/energy.raw +0 -3
  203. dpdata-0.2.17/tests/ase_traj/Al8He0O12/force.raw +0 -3
  204. dpdata-0.2.17/tests/ase_traj/Al8He0O12/type.raw +0 -20
  205. dpdata-0.2.17/tests/ase_traj/Al8He0O12/type_map.raw +0 -3
  206. dpdata-0.2.17/tests/ase_traj/Al8He0O12/virial.raw +0 -3
  207. dpdata-0.2.17/tests/ase_traj/Al8He4O12/box.raw +0 -1
  208. dpdata-0.2.17/tests/ase_traj/Al8He4O12/coord.raw +0 -1
  209. dpdata-0.2.17/tests/ase_traj/Al8He4O12/energy.raw +0 -1
  210. dpdata-0.2.17/tests/ase_traj/Al8He4O12/force.raw +0 -1
  211. dpdata-0.2.17/tests/ase_traj/Al8He4O12/type.raw +0 -24
  212. dpdata-0.2.17/tests/ase_traj/Al8He4O12/type_map.raw +0 -3
  213. dpdata-0.2.17/tests/ase_traj/Al8He4O12/virial.raw +0 -1
  214. dpdata-0.2.17/tests/ase_traj/Al8He8O12/box.raw +0 -1
  215. dpdata-0.2.17/tests/ase_traj/Al8He8O12/coord.raw +0 -1
  216. dpdata-0.2.17/tests/ase_traj/Al8He8O12/energy.raw +0 -1
  217. dpdata-0.2.17/tests/ase_traj/Al8He8O12/force.raw +0 -1
  218. dpdata-0.2.17/tests/ase_traj/Al8He8O12/type.raw +0 -28
  219. dpdata-0.2.17/tests/ase_traj/Al8He8O12/type_map.raw +0 -3
  220. dpdata-0.2.17/tests/ase_traj/Al8He8O12/virial.raw +0 -1
  221. dpdata-0.2.17/tests/ase_traj/HeAlO.traj +0 -0
  222. dpdata-0.2.17/tests/bond_order/BOH4-.mol +0 -22
  223. dpdata-0.2.17/tests/bond_order/C5H5-.mol +0 -25
  224. dpdata-0.2.17/tests/bond_order/CH3CC-.mol +0 -16
  225. dpdata-0.2.17/tests/bond_order/CH3NC.mol +0 -16
  226. dpdata-0.2.17/tests/bond_order/CH3NH3+.mol +0 -20
  227. dpdata-0.2.17/tests/bond_order/CH3NO2.mol +0 -18
  228. dpdata-0.2.17/tests/bond_order/CH3OAsO3_2-.mol +0 -22
  229. dpdata-0.2.17/tests/bond_order/CH3OH.mol +0 -16
  230. dpdata-0.2.17/tests/bond_order/CH3OPO3_2-.mol +0 -22
  231. dpdata-0.2.17/tests/bond_order/CH3PH3+.mol +0 -20
  232. dpdata-0.2.17/tests/bond_order/CH3SH.mol +0 -16
  233. dpdata-0.2.17/tests/bond_order/CH3SO3-.mol +0 -20
  234. dpdata-0.2.17/tests/bond_order/CH3_2SO.mol +0 -24
  235. dpdata-0.2.17/tests/bond_order/CH3_2SO2.mol +0 -26
  236. dpdata-0.2.17/tests/bond_order/OCH3+.mol +0 -30
  237. dpdata-0.2.17/tests/bond_order/arg.mol +0 -30
  238. dpdata-0.2.17/tests/bond_order/formal_charge.mol +0 -111
  239. dpdata-0.2.17/tests/bond_order/gly.mol +0 -24
  240. dpdata-0.2.17/tests/bond_order/methane.sdf +0 -60
  241. dpdata-0.2.17/tests/bond_order/methane_ethane.sdf +0 -72
  242. dpdata-0.2.17/tests/bond_order/oxpy.mol +0 -29
  243. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1a4r_ligand_obabel.sdf +0 -107
  244. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1ai5_ligand_obabel.sdf +0 -60
  245. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1f5l_ligand_obabel.sdf +0 -70
  246. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1m1b_ligand_obabel.sdf +0 -45
  247. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1mue_ligand_obabel.sdf +0 -121
  248. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1w4q_ligand_obabel.sdf +0 -84
  249. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/2e94_ligand_obabel.sdf +0 -113
  250. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/4xaq_ligand_obabel.sdf +0 -69
  251. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/4xtw_ligand_obabel.sdf +0 -161
  252. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1a4r_ligand.sdf +0 -107
  253. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1ai5_ligand.sdf +0 -59
  254. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1f5l_ligand.sdf +0 -69
  255. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1m1b_ligand.sdf +0 -44
  256. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1mue_ligand.sdf +0 -121
  257. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1w4q_ligand.sdf +0 -84
  258. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/2e94_ligand.sdf +0 -113
  259. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/4xaq_ligand.sdf +0 -68
  260. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/4xtw_ligand.sdf +0 -161
  261. dpdata-0.2.17/tests/comp_sys.py +0 -124
  262. dpdata-0.2.17/tests/computed_structure_entry.json +0 -226
  263. dpdata-0.2.17/tests/context.py +0 -14
  264. dpdata-0.2.17/tests/cp2k/aimd/DPGEN-1.ener +0 -31
  265. dpdata-0.2.17/tests/cp2k/aimd/DPGEN-frc-1.xyz +0 -16050
  266. dpdata-0.2.17/tests/cp2k/aimd/DPGEN-pos-1.xyz +0 -16050
  267. dpdata-0.2.17/tests/cp2k/aimd/cp2k.log +0 -65942
  268. dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/box.npy +0 -0
  269. dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/coord.npy +0 -0
  270. dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/energy.npy +0 -0
  271. dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/force.npy +0 -0
  272. dpdata-0.2.17/tests/cp2k/aimd/deepmd/type.raw +0 -533
  273. dpdata-0.2.17/tests/cp2k/aimd/deepmd/type_map.raw +0 -4
  274. dpdata-0.2.17/tests/cp2k/aimd/input.inp +0 -679
  275. dpdata-0.2.17/tests/cp2k/aimd_stress/DPGEN-pos-1.xyz +0 -7
  276. dpdata-0.2.17/tests/cp2k/aimd_stress/cp2k.log +0 -1992
  277. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/box.npy +0 -0
  278. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/coord.npy +0 -0
  279. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/energy.npy +0 -0
  280. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/force.npy +0 -0
  281. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/virial.npy +0 -0
  282. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/type.raw +0 -5
  283. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/type_map.raw +0 -2
  284. dpdata-0.2.17/tests/cp2k/aimd_stress/input.inp +0 -108
  285. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/cp2k_output_duplicate_header +0 -2841
  286. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/box.npy +0 -0
  287. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/coord.npy +0 -0
  288. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/energy.npy +0 -0
  289. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/force.npy +0 -0
  290. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/virial.npy +0 -0
  291. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/type.raw +0 -30
  292. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/type_map.raw +0 -3
  293. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/cp2k_output_element_replace +0 -4541
  294. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/box.npy +0 -0
  295. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/coord.npy +0 -0
  296. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/energy.npy +0 -0
  297. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/force.npy +0 -0
  298. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/virial.npy +0 -0
  299. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/type.raw +0 -601
  300. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/type_map.raw +0 -4
  301. dpdata-0.2.17/tests/cp2k/cp2k_nocon_output +0 -4344
  302. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/cp2k_output +0 -1657
  303. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/box.npy +0 -0
  304. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/coord.npy +0 -0
  305. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/energy.npy +0 -0
  306. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/force.npy +0 -0
  307. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/virial.npy +0 -0
  308. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/type.raw +0 -30
  309. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/type_map.raw +0 -3
  310. dpdata-0.2.17/tests/dftbplus/detailed.out +0 -88
  311. dpdata-0.2.17/tests/dftbplus/dftb_pin.hsd +0 -93
  312. dpdata-0.2.17/tests/fhi_aims/out_md +0 -1178
  313. dpdata-0.2.17/tests/fhi_aims/out_scf +0 -2228
  314. dpdata-0.2.17/tests/fhi_aims/output_multi_elements +0 -7209
  315. dpdata-0.2.17/tests/fhi_aims/ref_cell.txt +0 -3
  316. dpdata-0.2.17/tests/fhi_aims/ref_cell_md.txt +0 -9
  317. dpdata-0.2.17/tests/fhi_aims/ref_cell_md_m.txt +0 -19
  318. dpdata-0.2.17/tests/fhi_aims/ref_coord.txt +0 -2
  319. dpdata-0.2.17/tests/fhi_aims/ref_coord_md.txt +0 -9
  320. dpdata-0.2.17/tests/fhi_aims/ref_coord_md_m.txt +0 -480
  321. dpdata-0.2.17/tests/fhi_aims/ref_energy_md.txt +0 -3
  322. dpdata-0.2.17/tests/fhi_aims/ref_energy_md_m.txt +0 -6
  323. dpdata-0.2.17/tests/fhi_aims/ref_force.txt +0 -2
  324. dpdata-0.2.17/tests/fhi_aims/ref_force_md.txt +0 -9
  325. dpdata-0.2.17/tests/fhi_aims/ref_force_md_m.txt +0 -480
  326. dpdata-0.2.17/tests/gaussian/aimd_gaussian_CH4_output +0 -2615
  327. dpdata-0.2.17/tests/gaussian/h2pbc.gaussianlog +0 -301
  328. dpdata-0.2.17/tests/gaussian/largeforce.gaussianlog +0 -20857
  329. dpdata-0.2.17/tests/gaussian/methane.gaussianlog +0 -342
  330. dpdata-0.2.17/tests/gaussian/methane_reordered.gaussianlog +0 -342
  331. dpdata-0.2.17/tests/gaussian/methane_sub.gaussianlog +0 -339
  332. dpdata-0.2.17/tests/gaussian/noncoveraged.gaussianlog +0 -317
  333. dpdata-0.2.17/tests/gaussian/oxygen.gaussianlog +0 -1252
  334. dpdata-0.2.17/tests/gromacs/1h.gro +0 -12
  335. dpdata-0.2.17/tests/gromacs/1h.tri.gro +0 -12
  336. dpdata-0.2.17/tests/gromacs/case_for_format_atom_name.gro +0 -35
  337. dpdata-0.2.17/tests/gromacs/multi_frames.gro +0 -24
  338. dpdata-0.2.17/tests/lammps/traj_with_random_type_id.dump +0 -50
  339. dpdata-0.2.17/tests/plugin/dpdata_plugin_test/__init__.py +0 -16
  340. dpdata-0.2.17/tests/plugin/pyproject.toml +0 -17
  341. dpdata-0.2.17/tests/poscars/6362_OUTCAR +0 -3090
  342. dpdata-0.2.17/tests/poscars/CONTCAR.h2o.md +0 -43
  343. dpdata-0.2.17/tests/poscars/OUTCAR.Ge.vdw +0 -1616
  344. dpdata-0.2.17/tests/poscars/OUTCAR.ch4.1step +0 -710
  345. dpdata-0.2.17/tests/poscars/OUTCAR.ch4.ml +0 -3289
  346. dpdata-0.2.17/tests/poscars/OUTCAR.ch4.unconverged +0 -3133
  347. dpdata-0.2.17/tests/poscars/OUTCAR.h2o.md +0 -2902
  348. dpdata-0.2.17/tests/poscars/OUTCAR.h2o.md.10 +0 -6166
  349. dpdata-0.2.17/tests/poscars/POSCAR.P42nmc +0 -104
  350. dpdata-0.2.17/tests/poscars/POSCAR.P42nmc.replace +0 -104
  351. dpdata-0.2.17/tests/poscars/POSCAR.SiC +0 -16
  352. dpdata-0.2.17/tests/poscars/POSCAR.SiC.const +0 -16
  353. dpdata-0.2.17/tests/poscars/POSCAR.SiC.normal +0 -16
  354. dpdata-0.2.17/tests/poscars/POSCAR.SiC.replicate123 +0 -56
  355. dpdata-0.2.17/tests/poscars/POSCAR.SiC.uniform +0 -16
  356. dpdata-0.2.17/tests/poscars/POSCAR.h2o.md +0 -14
  357. dpdata-0.2.17/tests/poscars/POSCAR.h4o3 +0 -15
  358. dpdata-0.2.17/tests/poscars/POSCAR.oh.c +0 -11
  359. dpdata-0.2.17/tests/poscars/POSCAR.oh.d +0 -10
  360. dpdata-0.2.17/tests/poscars/POSCAR.oh.d.dup +0 -11
  361. dpdata-0.2.17/tests/poscars/conf.5.dump +0 -55
  362. dpdata-0.2.17/tests/poscars/conf.dump +0 -22
  363. dpdata-0.2.17/tests/poscars/conf.lmp +0 -12
  364. dpdata-0.2.17/tests/poscars/conf.waterion.lmp +0 -391
  365. dpdata-0.2.17/tests/poscars/conf2.dump +0 -11
  366. dpdata-0.2.17/tests/poscars/conf_s_su.dump +0 -22
  367. dpdata-0.2.17/tests/poscars/conf_unfold.dump +0 -22
  368. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/box.raw +0 -3
  369. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/coord.raw +0 -3
  370. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/energy.raw +0 -3
  371. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/force.raw +0 -3
  372. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/type.raw +0 -6
  373. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/virial.raw +0 -3
  374. dpdata-0.2.17/tests/poscars/h2o.md.json +0 -369
  375. dpdata-0.2.17/tests/poscars/poscar_ref_oh.py +0 -50
  376. dpdata-0.2.17/tests/poscars/shift_origin.dump +0 -26
  377. dpdata-0.2.17/tests/poscars/test_lammps_dump_s_su.py +0 -27
  378. dpdata-0.2.17/tests/poscars/vasprun.Ge.vdw.xml +0 -1468
  379. dpdata-0.2.17/tests/poscars/vasprun.h2o.md.10.xml +0 -2681
  380. dpdata-0.2.17/tests/poscars/vasprun.h2o.md.tribox.lower.xml +0 -2054
  381. dpdata-0.2.17/tests/poscars/vasprun.h2o.md.tribox.xml +0 -2010
  382. dpdata-0.2.17/tests/poscars/vasprun.h2o.md.xml +0 -1753
  383. dpdata-0.2.17/tests/psi4/psi4.out +0 -549
  384. dpdata-0.2.17/tests/pwmat/MOVEMENT +0 -27776
  385. dpdata-0.2.17/tests/pwmat/OUT.MLMD +0 -18
  386. dpdata-0.2.17/tests/pwmat/atom.config +0 -11
  387. dpdata-0.2.17/tests/pwmat/atom.config.oh +0 -8
  388. dpdata-0.2.17/tests/pwmat/conf.lmp +0 -12
  389. dpdata-0.2.17/tests/pwmat/config_ref_ch4.py +0 -59
  390. dpdata-0.2.17/tests/pwmat/config_ref_oh.py +0 -45
  391. dpdata-0.2.17/tests/pwmat/mlmd_cell +0 -3
  392. dpdata-0.2.17/tests/pwmat/mlmd_coord +0 -5
  393. dpdata-0.2.17/tests/pwmat/mlmd_force +0 -5
  394. dpdata-0.2.17/tests/pwmat/ref_cell +0 -3
  395. dpdata-0.2.17/tests/pwmat/ref_coord +0 -5
  396. dpdata-0.2.17/tests/pwmat/ref_force +0 -5
  397. dpdata-0.2.17/tests/pymatgen_data/FA-001.vasp +0 -16
  398. dpdata-0.2.17/tests/pymatgen_data/FA-001.xyz +0 -10
  399. dpdata-0.2.17/tests/pymatgen_data/mol2-new.vasp +0 -16
  400. dpdata-0.2.17/tests/pymatgen_data/mol2.vasp +0 -16
  401. dpdata-0.2.17/tests/qe.scf/01.in +0 -37
  402. dpdata-0.2.17/tests/qe.scf/01.out +0 -321
  403. dpdata-0.2.17/tests/qe.scf/02.in +0 -230
  404. dpdata-0.2.17/tests/qe.scf/02.out +0 -776
  405. dpdata-0.2.17/tests/qe.scf/Al.in +0 -43
  406. dpdata-0.2.17/tests/qe.scf/Al.out +0 -557
  407. dpdata-0.2.17/tests/qe.scf/ch4_coord +0 -5
  408. dpdata-0.2.17/tests/qe.scf/ch4_force +0 -5
  409. dpdata-0.2.17/tests/qe.scf/ch4_virial +0 -3
  410. dpdata-0.2.17/tests/qe.scf/h2o_cell +0 -3
  411. dpdata-0.2.17/tests/qe.scf/h2o_coord +0 -192
  412. dpdata-0.2.17/tests/qe.scf/h2o_force +0 -192
  413. dpdata-0.2.17/tests/qe.scf/h2o_virial +0 -3
  414. dpdata-0.2.17/tests/qe.traj/oh-md.evp +0 -2
  415. dpdata-0.2.17/tests/qe.traj/oh-md.for +0 -384
  416. dpdata-0.2.17/tests/qe.traj/oh-md.in +0 -256
  417. dpdata-0.2.17/tests/qe.traj/oh-md.pos +0 -384
  418. dpdata-0.2.17/tests/qe.traj/traj6.cel +0 -24
  419. dpdata-0.2.17/tests/qe.traj/traj6.evp +0 -7
  420. dpdata-0.2.17/tests/qe.traj/traj6.for +0 -18
  421. dpdata-0.2.17/tests/qe.traj/traj6.in +0 -67
  422. dpdata-0.2.17/tests/qe.traj/traj6.pos +0 -18
  423. dpdata-0.2.17/tests/siesta/aimd/cell +0 -19
  424. dpdata-0.2.17/tests/siesta/aimd/coord +0 -328
  425. dpdata-0.2.17/tests/siesta/aimd/energy +0 -5
  426. dpdata-0.2.17/tests/siesta/aimd/force +0 -326
  427. dpdata-0.2.17/tests/siesta/aimd/output +0 -1486
  428. dpdata-0.2.17/tests/siesta/aimd/virial +0 -21
  429. dpdata-0.2.17/tests/siesta/scf/ref_cell +0 -3
  430. dpdata-0.2.17/tests/siesta/scf/ref_coord +0 -5
  431. dpdata-0.2.17/tests/siesta/scf/ref_energy +0 -1
  432. dpdata-0.2.17/tests/siesta/scf/ref_force +0 -5
  433. dpdata-0.2.17/tests/siesta/scf/ref_virial +0 -3
  434. dpdata-0.2.17/tests/siesta/scf/siesta_output +0 -614
  435. dpdata-0.2.17/tests/test_abacus_md.py +0 -252
  436. dpdata-0.2.17/tests/test_abacus_pw_scf.py +0 -148
  437. dpdata-0.2.17/tests/test_abacus_relax.py +0 -190
  438. dpdata-0.2.17/tests/test_abacus_stru_dump.py +0 -29
  439. dpdata-0.2.17/tests/test_amber_md.py +0 -56
  440. dpdata-0.2.17/tests/test_amber_sqm.py +0 -81
  441. dpdata-0.2.17/tests/test_ase_traj.py +0 -47
  442. dpdata-0.2.17/tests/test_bond_order_system.py +0 -154
  443. dpdata-0.2.17/tests/test_cell_to_low_triangle.py +0 -67
  444. dpdata-0.2.17/tests/test_cli.py +0 -28
  445. dpdata-0.2.17/tests/test_corr.py +0 -53
  446. dpdata-0.2.17/tests/test_cp2k_aimd_output.py +0 -57
  447. dpdata-0.2.17/tests/test_cp2k_output.py +0 -73
  448. dpdata-0.2.17/tests/test_custom_data_type.py +0 -93
  449. dpdata-0.2.17/tests/test_deepmd_comp.py +0 -93
  450. dpdata-0.2.17/tests/test_deepmd_hdf5.py +0 -72
  451. dpdata-0.2.17/tests/test_deepmd_mixed.py +0 -316
  452. dpdata-0.2.17/tests/test_deepmd_raw.py +0 -193
  453. dpdata-0.2.17/tests/test_dftbplus.py +0 -58
  454. dpdata-0.2.17/tests/test_elements_index.py +0 -29
  455. dpdata-0.2.17/tests/test_empty.py +0 -33
  456. dpdata-0.2.17/tests/test_fhi_md_multi_elem_output.py +0 -62
  457. dpdata-0.2.17/tests/test_fhi_md_output.py +0 -60
  458. dpdata-0.2.17/tests/test_fhi_output.py +0 -76
  459. dpdata-0.2.17/tests/test_gaussian_driver.py +0 -128
  460. dpdata-0.2.17/tests/test_gaussian_gjf.py +0 -27
  461. dpdata-0.2.17/tests/test_gaussian_log.py +0 -107
  462. dpdata-0.2.17/tests/test_gromacs_gro.py +0 -154
  463. dpdata-0.2.17/tests/test_json.py +0 -28
  464. dpdata-0.2.17/tests/test_lammps_dump_idx.py +0 -27
  465. dpdata-0.2.17/tests/test_lammps_dump_shift_origin.py +0 -15
  466. dpdata-0.2.17/tests/test_lammps_dump_skipload.py +0 -20
  467. dpdata-0.2.17/tests/test_lammps_dump_to_system.py +0 -27
  468. dpdata-0.2.17/tests/test_lammps_dump_unfold.py +0 -37
  469. dpdata-0.2.17/tests/test_lammps_lmp_dump.py +0 -29
  470. dpdata-0.2.17/tests/test_lammps_lmp_to_system.py +0 -17
  471. dpdata-0.2.17/tests/test_lammps_read_from_trajs.py +0 -133
  472. dpdata-0.2.17/tests/test_msd.py +0 -31
  473. dpdata-0.2.17/tests/test_multisystems.py +0 -238
  474. dpdata-0.2.17/tests/test_periodic_table.py +0 -31
  475. dpdata-0.2.17/tests/test_perturb.py +0 -172
  476. dpdata-0.2.17/tests/test_pick_atom_idx.py +0 -49
  477. dpdata-0.2.17/tests/test_predict.py +0 -129
  478. dpdata-0.2.17/tests/test_psi4.py +0 -62
  479. dpdata-0.2.17/tests/test_pwmat_config_dump.py +0 -60
  480. dpdata-0.2.17/tests/test_pwmat_config_to_system.py +0 -36
  481. dpdata-0.2.17/tests/test_pwmat_mlmd.py +0 -63
  482. dpdata-0.2.17/tests/test_pwmat_movement.py +0 -67
  483. dpdata-0.2.17/tests/test_pymatgen_molecule.py +0 -39
  484. dpdata-0.2.17/tests/test_qe_cp_traj.py +0 -70
  485. dpdata-0.2.17/tests/test_qe_cp_traj_skipload.py +0 -75
  486. dpdata-0.2.17/tests/test_qe_pw_scf.py +0 -146
  487. dpdata-0.2.17/tests/test_qe_pw_scf_crystal_atomic_positions.py +0 -34
  488. dpdata-0.2.17/tests/test_qe_pw_scf_energy_bug.py +0 -25
  489. dpdata-0.2.17/tests/test_quip_gap_xyz.py +0 -118
  490. dpdata-0.2.17/tests/test_remove_atom_names.py +0 -22
  491. dpdata-0.2.17/tests/test_remove_outlier.py +0 -54
  492. dpdata-0.2.17/tests/test_remove_pbc.py +0 -49
  493. dpdata-0.2.17/tests/test_replace.py +0 -43
  494. dpdata-0.2.17/tests/test_replicate.py +0 -38
  495. dpdata-0.2.17/tests/test_shuffle.py +0 -24
  496. dpdata-0.2.17/tests/test_siesta_aiMD_output.py +0 -160
  497. dpdata-0.2.17/tests/test_siesta_output.py +0 -102
  498. dpdata-0.2.17/tests/test_split_dataset.py +0 -25
  499. dpdata-0.2.17/tests/test_sqm_driver.py +0 -34
  500. dpdata-0.2.17/tests/test_stat.py +0 -31
  501. dpdata-0.2.17/tests/test_system_append.py +0 -58
  502. dpdata-0.2.17/tests/test_system_apply_pbc.py +0 -33
  503. dpdata-0.2.17/tests/test_system_set_type.py +0 -35
  504. dpdata-0.2.17/tests/test_to_ase.py +0 -52
  505. dpdata-0.2.17/tests/test_to_list.py +0 -19
  506. dpdata-0.2.17/tests/test_to_pymatgen.py +0 -32
  507. dpdata-0.2.17/tests/test_to_pymatgen_entry.py +0 -33
  508. dpdata-0.2.17/tests/test_type_map.py +0 -40
  509. dpdata-0.2.17/tests/test_vasp_outcar.py +0 -117
  510. dpdata-0.2.17/tests/test_vasp_poscar_dump.py +0 -60
  511. dpdata-0.2.17/tests/test_vasp_poscar_to_system.py +0 -60
  512. dpdata-0.2.17/tests/test_vasp_unconverged_outcar.py +0 -27
  513. dpdata-0.2.17/tests/test_vasp_xml.py +0 -51
  514. dpdata-0.2.17/tests/test_water_ions.py +0 -65
  515. dpdata-0.2.17/tests/test_xyz.py +0 -44
  516. dpdata-0.2.17/tests/xyz/B1C9/box.raw +0 -2
  517. dpdata-0.2.17/tests/xyz/B1C9/coord.raw +0 -2
  518. dpdata-0.2.17/tests/xyz/B1C9/energy.raw +0 -2
  519. dpdata-0.2.17/tests/xyz/B1C9/force.raw +0 -2
  520. dpdata-0.2.17/tests/xyz/B1C9/type.raw +0 -10
  521. dpdata-0.2.17/tests/xyz/B1C9/type_map.raw +0 -2
  522. dpdata-0.2.17/tests/xyz/B1C9/virial.raw +0 -2
  523. dpdata-0.2.17/tests/xyz/B5C7/box.raw +0 -1
  524. dpdata-0.2.17/tests/xyz/B5C7/coord.raw +0 -1
  525. dpdata-0.2.17/tests/xyz/B5C7/energy.raw +0 -1
  526. dpdata-0.2.17/tests/xyz/B5C7/force.raw +0 -1
  527. dpdata-0.2.17/tests/xyz/B5C7/type.raw +0 -12
  528. dpdata-0.2.17/tests/xyz/B5C7/type_map.raw +0 -2
  529. dpdata-0.2.17/tests/xyz/B5C7/virial.raw +0 -1
  530. dpdata-0.2.17/tests/xyz/B5C7_novirials/box.raw +0 -1
  531. dpdata-0.2.17/tests/xyz/B5C7_novirials/coord.raw +0 -1
  532. dpdata-0.2.17/tests/xyz/B5C7_novirials/energy.raw +0 -1
  533. dpdata-0.2.17/tests/xyz/B5C7_novirials/force.raw +0 -1
  534. dpdata-0.2.17/tests/xyz/B5C7_novirials/type.raw +0 -12
  535. dpdata-0.2.17/tests/xyz/B5C7_novirials/type_map.raw +0 -2
  536. dpdata-0.2.17/tests/xyz/xyz_B5C7_novirials.xyz +0 -14
  537. dpdata-0.2.17/tests/xyz/xyz_unittest.field.xyz +0 -41
  538. dpdata-0.2.17/tests/xyz/xyz_unittest.sort.xyz +0 -38
  539. dpdata-0.2.17/tests/xyz/xyz_unittest.xyz +0 -38
  540. {dpdata-0.2.17 → dpdata-0.2.18}/.git-blame-ignore-revs +0 -0
  541. {dpdata-0.2.17 → dpdata-0.2.18}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  542. {dpdata-0.2.17 → dpdata-0.2.18}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  543. {dpdata-0.2.17 → dpdata-0.2.18}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  544. {dpdata-0.2.17 → dpdata-0.2.18}/.github/ISSUE_TEMPLATE/generic-issue.yml +0 -0
  545. {dpdata-0.2.17 → dpdata-0.2.18}/.github/workflows/mirror_gitee.yml +0 -0
  546. {dpdata-0.2.17 → dpdata-0.2.18}/.github/workflows/pub-pypi.yml +0 -0
  547. {dpdata-0.2.17 → dpdata-0.2.18}/.github/workflows/test_import.yml +0 -0
  548. {dpdata-0.2.17 → dpdata-0.2.18}/.readthedocs.yaml +0 -0
  549. {dpdata-0.2.17 → dpdata-0.2.18}/LICENSE +0 -0
  550. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/__about__.py +0 -0
  551. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/__init__.py +0 -0
  552. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/abacus/__init__.py +0 -0
  553. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/abacus/md.py +0 -0
  554. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/abacus/relax.py +0 -0
  555. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/amber/__init__.py +0 -0
  556. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/amber/md.py +0 -0
  557. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/amber/sqm.py +0 -0
  558. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/ase_calculator.py +0 -0
  559. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/bond_order_system.py +0 -0
  560. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/cp2k/__init__.py +0 -0
  561. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/cp2k/cell.py +0 -0
  562. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/data_type.py +0 -0
  563. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/deepmd/__init__.py +0 -0
  564. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/deepmd/comp.py +0 -0
  565. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/deepmd/mixed.py +0 -0
  566. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/deepmd/raw.py +0 -0
  567. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/dftbplus/__init__.py +0 -0
  568. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/dftbplus/output.py +0 -0
  569. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/fhi_aims/__init__.py +0 -0
  570. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/fhi_aims/output.py +0 -0
  571. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/gaussian/__init__.py +0 -0
  572. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/gaussian/gjf.py +0 -0
  573. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/gromacs/__init__.py +0 -0
  574. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/gromacs/gro.py +0 -0
  575. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/lammps/__init__.py +0 -0
  576. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/lammps/lmp.py +0 -0
  577. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/md/__init__.py +0 -0
  578. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/md/msd.py +0 -0
  579. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/md/pbc.py +0 -0
  580. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/md/rdf.py +0 -0
  581. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/md/water.py +0 -0
  582. {dpdata-0.2.17/dpdata/psi4 → dpdata-0.2.18/dpdata/openmx}/__init__.py +0 -0
  583. {dpdata-0.2.17/dpdata/pwmat → dpdata-0.2.18/dpdata/orca}/__init__.py +0 -0
  584. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/periodic_table.json +0 -0
  585. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/periodic_table.py +0 -0
  586. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/3dmol.py +0 -0
  587. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/__init__.py +0 -0
  588. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/abacus.py +0 -0
  589. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/amber.py +0 -0
  590. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/cp2k.py +0 -0
  591. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/deepmd.py +0 -0
  592. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/dftbplus.py +0 -0
  593. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/fhi_aims.py +0 -0
  594. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/gaussian.py +0 -0
  595. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/gromacs.py +0 -0
  596. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/lammps.py +0 -0
  597. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/list.py +0 -0
  598. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/pwmat.py +0 -0
  599. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/pymatgen.py +0 -0
  600. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/rdkit.py +0 -0
  601. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/siesta.py +0 -0
  602. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/xyz.py +0 -0
  603. {dpdata-0.2.17/dpdata/pymatgen → dpdata-0.2.18/dpdata/psi4}/__init__.py +0 -0
  604. {dpdata-0.2.17/dpdata/qe → dpdata-0.2.18/dpdata/pwmat}/__init__.py +0 -0
  605. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/pwmat/atomconfig.py +0 -0
  606. {dpdata-0.2.17/dpdata/rdkit → dpdata-0.2.18/dpdata/pymatgen}/__init__.py +0 -0
  607. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/pymatgen/molecule.py +0 -0
  608. {dpdata-0.2.17/dpdata/siesta → dpdata-0.2.18/dpdata/qe}/__init__.py +0 -0
  609. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/qe/traj.py +0 -0
  610. {dpdata-0.2.17/dpdata/vasp → dpdata-0.2.18/dpdata/rdkit}/__init__.py +0 -0
  611. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/rdkit/sanitize.py +0 -0
  612. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/rdkit/utils.py +0 -0
  613. {dpdata-0.2.17/dpdata/xyz → dpdata-0.2.18/dpdata/siesta}/__init__.py +0 -0
  614. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/siesta/aiMD_output.py +0 -0
  615. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/siesta/output.py +0 -0
  616. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/stat.py +0 -0
  617. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/unit.py +0 -0
  618. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/utils.py +0 -0
  619. /dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/nopbc → /dpdata-0.2.18/dpdata/vasp/__init__.py +0 -0
  620. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/vasp/poscar.py +0 -0
  621. /dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/nopbc → /dpdata-0.2.18/dpdata/xyz/__init__.py +0 -0
  622. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/xyz/xyz.py +0 -0
  623. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata.egg-info/dependency_links.txt +0 -0
  624. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata.egg-info/entry_points.txt +0 -0
  625. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata.egg-info/requires.txt +0 -0
  626. {dpdata-0.2.17 → dpdata-0.2.18}/dpdata.egg-info/top_level.txt +0 -0
  627. {dpdata-0.2.17 → dpdata-0.2.18}/setup.cfg +0 -0
@@ -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
@@ -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.10.1
22
- hooks:
23
- - id: black-jupyter
24
20
  - repo: https://github.com/astral-sh/ruff-pre-commit
25
21
  # Ruff version.
26
- rev: v0.1.3
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
@@ -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.17
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>
@@ -306,6 +306,7 @@ The `System` or `LabeledSystem` can be constructed from the following file forma
306
306
  | ABACUS | STRU | True | True | LabeledSystem | 'abacus/relax' |
307
307
  | ase | structure | True | True | MultiSystems | 'ase/structure' |
308
308
  | DFTB+ | dftbplus | False | True | LabeledSystem | 'dftbplus' |
309
+ | n2p2 | n2p2 | True | True | LabeledSystem | 'n2p2' |
309
310
 
310
311
 
311
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.
@@ -96,6 +96,7 @@ The `System` or `LabeledSystem` can be constructed from the following file forma
96
96
  | ABACUS | STRU | True | True | LabeledSystem | 'abacus/relax' |
97
97
  | ase | structure | True | True | MultiSystems | 'ase/structure' |
98
98
  | DFTB+ | dftbplus | False | True | LabeledSystem | 'dftbplus' |
99
+ | n2p2 | n2p2 | True | True | LabeledSystem | 'n2p2' |
99
100
 
100
101
 
101
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.
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.2.17'
16
- __version_tuple__ = version_tuple = (0, 2, 17)
15
+ __version__ = version = '0.2.18'
16
+ __version_tuple__ = version_tuple = (0, 2, 18)
@@ -10,6 +10,16 @@ bohr2ang = LengthConversion("bohr", "angstrom").value()
10
10
  ry2ev = EnergyConversion("rydberg", "eV").value()
11
11
  kbar2evperang3 = PressureConversion("kbar", "eV/angstrom^3").value()
12
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
+
13
23
 
14
24
  def CheckFile(ifile):
15
25
  if not os.path.isfile(ifile):
@@ -43,6 +53,29 @@ def get_block(lines, keyword, skip=0, nlines=None):
43
53
  return ret
44
54
 
45
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
+
46
79
  def get_geometry_in(fname, inlines):
47
80
  geometry_path_in = os.path.join(fname, "STRU")
48
81
  for line in inlines:
@@ -64,8 +97,8 @@ def get_path_out(fname, inlines):
64
97
 
65
98
 
66
99
  def get_cell(geometry_inlines):
67
- cell_lines = get_block(geometry_inlines, "LATTICE_VECTORS", skip=0, nlines=3)
68
- 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")
69
102
 
70
103
  celldm = float(celldm_lines[0].split()[0]) * bohr2ang # lattice const is in Bohr
71
104
  cell = []
@@ -76,7 +109,7 @@ def get_cell(geometry_inlines):
76
109
 
77
110
 
78
111
  def get_coords(celldm, cell, geometry_inlines, inlines=None):
79
- coords_lines = get_block(geometry_inlines, "ATOMIC_POSITIONS", skip=0)
112
+ coords_lines = get_stru_block(geometry_inlines, "ATOMIC_POSITIONS")
80
113
  # assuming that ATOMIC_POSITIONS is at the bottom of the STRU file
81
114
  coord_type = coords_lines[0].split()[0].lower() # cartisan or direct
82
115
  atom_names = [] # element abbr in periodic table
@@ -1,4 +1,5 @@
1
1
  """Amber mask."""
2
+
2
3
  try:
3
4
  import parmed
4
5
  except ImportError:
@@ -1,4 +1,5 @@
1
1
  """Command line interface for dpdata."""
2
+
2
3
  import argparse
3
4
  from typing import Optional
4
5
 
@@ -117,9 +117,7 @@ class Cp2kSystems:
117
117
  lines.append(self.xyz_file_object.readline())
118
118
  if not lines[-1]:
119
119
  raise RuntimeError(
120
- "this xyz file may lack of lines, should be {};lines:{}".format(
121
- atom_num + 2, lines
122
- )
120
+ f"this xyz file may lack of lines, should be {atom_num + 2};lines:{lines}"
123
121
  )
124
122
  yield lines
125
123
 
@@ -1,4 +1,5 @@
1
1
  """Utils for deepmd/hdf5 format."""
2
+
2
3
  from __future__ import annotations
3
4
 
4
5
  import warnings
@@ -1,4 +1,5 @@
1
1
  """Driver plugin system."""
2
+
2
3
  from abc import ABC, abstractmethod
3
4
  from typing import TYPE_CHECKING, Callable, List, Union
4
5
 
@@ -163,6 +164,8 @@ class HybridDriver(Driver):
163
164
  else:
164
165
  labeled_data["energies"] += lb_data["energies"]
165
166
  labeled_data["forces"] += lb_data["forces"]
167
+ if "virials" in labeled_data and "virials" in lb_data:
168
+ labeled_data["virials"] += lb_data["virials"]
166
169
  return labeled_data
167
170
 
168
171
 
@@ -1,4 +1,5 @@
1
1
  """Implement the format plugin system."""
2
+
2
3
  import os
3
4
  from abc import ABC
4
5
 
@@ -11,6 +11,25 @@ symbols = ["X"] + ELEMENTS
11
11
 
12
12
 
13
13
  def to_system_data(file_name, md=False):
14
+ """Read Gaussian log file.
15
+
16
+ Parameters
17
+ ----------
18
+ file_name : str
19
+ file name
20
+ md : bool, default False
21
+ whether to read multiple frames
22
+
23
+ Returns
24
+ -------
25
+ data : dict
26
+ system data
27
+
28
+ Raises
29
+ ------
30
+ RuntimeError
31
+ if the input orientation is not found
32
+ """
14
33
  data = {}
15
34
  # read from log lines
16
35
  flag = 0
@@ -20,6 +39,7 @@ def to_system_data(file_name, md=False):
20
39
  forces_t = []
21
40
  cells_t = []
22
41
  nopbc = True
42
+ coords = None
23
43
 
24
44
  with open(file_name) as fp:
25
45
  for line in fp:
@@ -44,6 +64,12 @@ def to_system_data(file_name, md=False):
44
64
  elif flag == 4:
45
65
  # forces
46
66
  if line.startswith(" -------"):
67
+ if coords is None:
68
+ raise RuntimeError(
69
+ "Input orientation is not found. Using Gaussian keyword "
70
+ "`Geom=PrintInputOrient` to always print the input orientation. "
71
+ "See https://gaussian.com/geom/ for more details."
72
+ )
47
73
  forces_t.append(forces)
48
74
  energy_t.append(energy)
49
75
  coords_t.append(coords)
@@ -55,6 +81,7 @@ def to_system_data(file_name, md=False):
55
81
  [[100.0, 0.0, 0.0], [0.0, 100.0, 0.0], [0.0, 0.0, 100.0]]
56
82
  )
57
83
  flag = 0
84
+ coords = None
58
85
  else:
59
86
  s = line.split()
60
87
  if line[14:16] == "-2":
@@ -121,8 +121,8 @@ def safe_get_posi(lines, cell, orig=np.zeros(3), unwrap=False):
121
121
  category=UnwrapWarning,
122
122
  )
123
123
  return (
124
- posis % 1
125
- ) @ cell # Convert scaled coordinates back to Cartesien coordinates with wraping at periodic boundary conditions
124
+ (posis % 1) @ cell
125
+ ) # Convert scaled coordinates back to Cartesien coordinates with wraping at periodic boundary conditions
126
126
 
127
127
 
128
128
  def get_dumpbox(lines):
@@ -0,0 +1,216 @@
1
+ #!/usr/bin/python3
2
+ import numpy as np
3
+
4
+ from ..unit import (
5
+ EnergyConversion,
6
+ ForceConversion,
7
+ LengthConversion,
8
+ PressureConversion,
9
+ )
10
+
11
+ ry2ev = EnergyConversion("rydberg", "eV").value()
12
+ kbar2evperang3 = PressureConversion("kbar", "eV/angstrom^3").value()
13
+
14
+ length_convert = LengthConversion("bohr", "angstrom").value()
15
+ energy_convert = EnergyConversion("hartree", "eV").value()
16
+ force_convert = ForceConversion("hartree/bohr", "eV/angstrom").value()
17
+
18
+ import warnings
19
+ from collections import OrderedDict
20
+
21
+ ### iterout.c from OpenMX soure code: column numbers and physical quantities ###
22
+ # /* 1: */
23
+ # /* 2,3,4: */
24
+ # /* 5,6,7: force *
25
+ # /* 8: x-component of velocity */
26
+ # /* 9: y-component of velocity */
27
+ # /* 10: z-component of velocity */
28
+ # /* 11: Net charge, electron charge is defined to be negative. */
29
+ # /* 12: magnetic moment (muB) */
30
+ # /* 13,14: angles of spin */
31
+
32
+ # 15: scf_convergence_flag (optional)
33
+ #
34
+ # 1. Move the declaration of `scf_convergence_flag` in `DFT.c` to `openmx_common.h`.
35
+ # 2. Add `scf_convergence_flag` output to the end of `iterout.c` where `*.md` is written.
36
+ # 3. Recompile OpenMX.
37
+
38
+
39
+ def load_atom(lines):
40
+ atom_names = []
41
+ atom_names_mode = False
42
+ for line in lines:
43
+ if "<Atoms.SpeciesAndCoordinates" in line:
44
+ atom_names_mode = True
45
+ elif "Atoms.SpeciesAndCoordinates>" in line:
46
+ atom_names_mode = False
47
+ elif atom_names_mode:
48
+ parts = line.split()
49
+ atom_names.append(parts[1])
50
+ natoms = len(atom_names)
51
+ atom_names_original = atom_names
52
+ atom_names = list(OrderedDict.fromkeys(set(atom_names))) # Python>=3.7
53
+ atom_names = sorted(
54
+ atom_names, key=atom_names_original.index
55
+ ) # Unique ordering of atomic species
56
+ ntypes = len(atom_names)
57
+ atom_numbs = [0] * ntypes
58
+ atom_types = []
59
+ atom_types_mode = False
60
+ for line in lines:
61
+ if "<Atoms.SpeciesAndCoordinates" in line:
62
+ atom_types_mode = True
63
+ elif "Atoms.SpeciesAndCoordinates>" in line:
64
+ atom_types_mode = False
65
+ elif atom_types_mode:
66
+ parts = line.split()
67
+ for i, atom_name in enumerate(atom_names):
68
+ if parts[1] == atom_name:
69
+ atom_numbs[i] += 1
70
+ atom_types.append(i)
71
+ atom_types = np.array(atom_types)
72
+ return atom_names, atom_types, atom_numbs
73
+
74
+
75
+ def load_cells(lines):
76
+ cell, cells = [], []
77
+ for index, line in enumerate(lines):
78
+ if "Cell_Vectors=" in line:
79
+ parts = line.split()
80
+ if len(parts) == 21: # MD.Type is NVT_NH
81
+ cell.append([float(parts[12]), float(parts[13]), float(parts[14])])
82
+ cell.append([float(parts[15]), float(parts[16]), float(parts[17])])
83
+ cell.append([float(parts[18]), float(parts[19]), float(parts[20])])
84
+ elif len(parts) == 16: # MD.Type is Opt
85
+ cell.append([float(parts[7]), float(parts[8]), float(parts[9])])
86
+ cell.append([float(parts[10]), float(parts[11]), float(parts[12])])
87
+ cell.append([float(parts[13]), float(parts[14]), float(parts[15])])
88
+ else:
89
+ raise RuntimeError(
90
+ "Does the file System.Name.md contain unsupported calculation results?"
91
+ )
92
+ cells.append(cell)
93
+ cell = []
94
+ cells = np.array(cells)
95
+ return cells
96
+
97
+
98
+ # load atom_names, atom_numbs, atom_types, cells
99
+ def load_param_file(fname, mdname):
100
+ with open(fname) as dat_file:
101
+ lines = dat_file.readlines()
102
+ atom_names, atom_types, atom_numbs = load_atom(lines)
103
+
104
+ with open(mdname) as md_file:
105
+ lines = md_file.readlines()
106
+ cells = load_cells(lines)
107
+ return atom_names, atom_numbs, atom_types, cells
108
+
109
+
110
+ def load_coords(lines, atom_names, natoms):
111
+ cnt = 0
112
+ coord, coords = [], []
113
+ for index, line in enumerate(lines):
114
+ if "time=" in line:
115
+ continue
116
+ for atom_name in atom_names:
117
+ atom_name += " "
118
+ if atom_name in line:
119
+ cnt += 1
120
+ parts = line.split()
121
+ for_line = [float(parts[1]), float(parts[2]), float(parts[3])]
122
+ coord.append(for_line)
123
+ # It may be necessary to recompile OpenMX to make scf convergence determination.
124
+ if len(parts) == 15 and parts[14] == "0":
125
+ warnings.warn("SCF in System.Name.md has not converged!")
126
+ if cnt == natoms:
127
+ coords.append(coord)
128
+ cnt = 0
129
+ coord = []
130
+ coords = np.array(coords)
131
+ return coords
132
+
133
+
134
+ def load_data(mdname, atom_names, natoms):
135
+ with open(mdname) as md_file:
136
+ lines = md_file.readlines()
137
+ coords = load_coords(lines, atom_names, natoms)
138
+ steps = [str(i) for i in range(1, coords.shape[0] + 1)]
139
+ return coords, steps
140
+
141
+
142
+ def to_system_data(fname, mdname):
143
+ data = {}
144
+ (
145
+ data["atom_names"],
146
+ data["atom_numbs"],
147
+ data["atom_types"],
148
+ data["cells"],
149
+ ) = load_param_file(fname, mdname)
150
+ data["coords"], steps = load_data(
151
+ mdname,
152
+ data["atom_names"],
153
+ np.sum(data["atom_numbs"]),
154
+ )
155
+ data["orig"] = np.zeros(3)
156
+ return data, steps
157
+
158
+
159
+ def load_energy(lines):
160
+ energy = []
161
+ for line in lines:
162
+ if "time=" in line:
163
+ parts = line.split()
164
+ ene_line = float(parts[4]) # Hartree
165
+ energy.append(ene_line)
166
+ continue
167
+ energy = energy_convert * np.array(energy) # Hartree -> eV
168
+ return energy
169
+
170
+
171
+ def load_force(lines, atom_names, atom_numbs):
172
+ cnt = 0
173
+ field, fields = [], []
174
+ for index, line in enumerate(lines):
175
+ if "time=" in line:
176
+ continue
177
+ for atom_name in atom_names:
178
+ atom_name += " "
179
+ if atom_name in line:
180
+ cnt += 1
181
+ parts = line.split()
182
+ for_line = [float(parts[4]), float(parts[5]), float(parts[6])]
183
+ field.append(for_line)
184
+ if cnt == np.sum(atom_numbs):
185
+ fields.append(field)
186
+ cnt = 0
187
+ field = []
188
+ force = force_convert * np.array(fields)
189
+ return force
190
+
191
+
192
+ # load energy, force
193
+ def to_system_label(fname, mdname):
194
+ atom_names, atom_numbs, atom_types, cells = load_param_file(fname, mdname)
195
+ with open(mdname) as md_file:
196
+ lines = md_file.readlines()
197
+ energy = load_energy(lines)
198
+ force = load_force(lines, atom_names, atom_numbs)
199
+ return energy, force
200
+
201
+
202
+ if __name__ == "__main__":
203
+ file_name = "Cdia"
204
+ fname = f"{file_name}.dat"
205
+ mdname = f"{file_name}.md"
206
+ atom_names, atom_numbs, atom_types, cells = load_param_file(fname, mdname)
207
+ coords, steps = load_data(mdname, atom_names, np.sum(atom_numbs))
208
+ data, steps = to_system_data(fname, mdname)
209
+ energy, force = to_system_label(fname, mdname)
210
+ print(atom_names)
211
+ print(atom_numbs)
212
+ print(atom_types)
213
+ # print(cells.shape)
214
+ # print(coords.shape)
215
+ # print(len(energy))
216
+ # print(force.shape)
@@ -0,0 +1,64 @@
1
+ from typing import Tuple
2
+
3
+ import numpy as np
4
+
5
+
6
+ def read_orca_sp_output(fn: str) -> Tuple[np.ndarray, np.ndarray, float, np.ndarray]:
7
+ """Read from ORCA output.
8
+
9
+ Note that both the energy and the gradient should be printed.
10
+
11
+ Parameters
12
+ ----------
13
+ fn : str
14
+ file name
15
+
16
+ Returns
17
+ -------
18
+ np.ndarray
19
+ atomic symbols
20
+ np.ndarray
21
+ atomic coordinates
22
+ float
23
+ total potential energy
24
+ np.ndarray
25
+ atomic forces
26
+ """
27
+ coord = None
28
+ symbols = None
29
+ forces = None
30
+ energy = None
31
+ with open(fn) as f:
32
+ flag = 0
33
+ for line in f:
34
+ if flag in (1, 3, 4):
35
+ flag += 1
36
+ elif flag == 2:
37
+ s = line.split()
38
+ if not len(s):
39
+ flag = 0
40
+ else:
41
+ symbols.append(s[0].capitalize())
42
+ coord.append([float(s[1]), float(s[2]), float(s[3])])
43
+ elif flag == 5:
44
+ s = line.split()
45
+ if not len(s):
46
+ flag = 0
47
+ else:
48
+ forces.append([float(s[3]), float(s[4]), float(s[5])])
49
+ elif line.startswith("CARTESIAN COORDINATES (ANGSTROEM)"):
50
+ # coord
51
+ flag = 1
52
+ coord = []
53
+ symbols = []
54
+ elif line.startswith("CARTESIAN GRADIENT"):
55
+ flag = 3
56
+ forces = []
57
+ elif line.startswith("FINAL SINGLE POINT ENERGY"):
58
+ energy = float(line.split()[-1])
59
+ symbols = np.array(symbols)
60
+ forces = -np.array(forces)
61
+ coord = np.array(coord)
62
+ assert coord.shape == forces.shape
63
+
64
+ return symbols, coord, energy, forces
@@ -6,11 +6,11 @@ class Plugin:
6
6
 
7
7
  Examples
8
8
  --------
9
- >>> Plugin = Register()
10
- >>> @Plugin.register("xx")
9
+ >>> example_plugin = Plugin()
10
+ >>> @example_plugin.register("xx")
11
11
  def xxx():
12
12
  pass
13
- >>> print(Plugin.plugins['xx'])
13
+ >>> print(example_plugin.plugins['xx'])
14
14
  """
15
15
 
16
16
  def __init__(self):