dpdata 0.2.17__tar.gz → 0.2.19__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 (638) hide show
  1. dpdata-0.2.19/.git_archival.txt +4 -0
  2. dpdata-0.2.19/.gitattributes +1 -0
  3. dpdata-0.2.19/.github/dependabot.yml +7 -0
  4. dpdata-0.2.19/.github/workflows/benchmark.yml +23 -0
  5. dpdata-0.2.19/.github/workflows/pyright.yml +19 -0
  6. {dpdata-0.2.17 → dpdata-0.2.19}/.github/workflows/test.yml +8 -8
  7. {dpdata-0.2.17 → dpdata-0.2.19}/.github/workflows/test_import.yml +18 -17
  8. {dpdata-0.2.17 → dpdata-0.2.19}/.gitignore +1 -0
  9. {dpdata-0.2.17 → dpdata-0.2.19}/.pre-commit-config.yaml +7 -6
  10. dpdata-0.2.19/MANIFEST.in +3 -0
  11. {dpdata-0.2.17 → dpdata-0.2.19}/PKG-INFO +7 -2
  12. {dpdata-0.2.17 → dpdata-0.2.19}/README.md +1 -0
  13. dpdata-0.2.19/benchmark/test_import.py +20 -0
  14. dpdata-0.2.19/dpdata/__about__.py +3 -0
  15. dpdata-0.2.19/dpdata/__init__.py +21 -0
  16. dpdata-0.2.19/dpdata/__main__.py +6 -0
  17. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/_version.py +2 -2
  18. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/abacus/md.py +4 -2
  19. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/abacus/relax.py +3 -1
  20. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/abacus/scf.py +48 -13
  21. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/amber/mask.py +3 -0
  22. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/amber/md.py +4 -1
  23. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/amber/sqm.py +2 -0
  24. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/ase_calculator.py +14 -9
  25. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/bond_order_system.py +8 -4
  26. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/cli.py +7 -7
  27. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/cp2k/cell.py +1 -0
  28. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/cp2k/output.py +3 -3
  29. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/data_type.py +9 -6
  30. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/deepmd/comp.py +2 -0
  31. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/deepmd/hdf5.py +9 -7
  32. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/deepmd/mixed.py +2 -0
  33. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/deepmd/raw.py +2 -0
  34. {dpdata-0.2.17/dpdata/fhi_aims → dpdata-0.2.19/dpdata/dftbplus}/__init__.py +0 -0
  35. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/dftbplus/output.py +2 -2
  36. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/driver.py +12 -6
  37. {dpdata-0.2.17/dpdata/gaussian → dpdata-0.2.19/dpdata/fhi_aims}/__init__.py +0 -0
  38. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/fhi_aims/output.py +8 -6
  39. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/format.py +11 -8
  40. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/gaussian/gjf.py +14 -19
  41. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/gaussian/log.py +29 -0
  42. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/gromacs/gro.py +2 -0
  43. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/lammps/dump.py +3 -2
  44. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/lammps/lmp.py +1 -0
  45. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/md/msd.py +2 -0
  46. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/md/pbc.py +2 -0
  47. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/md/rdf.py +2 -0
  48. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/md/water.py +2 -0
  49. dpdata-0.2.19/dpdata/openmx/omx.py +218 -0
  50. dpdata-0.2.19/dpdata/orca/output.py +64 -0
  51. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/periodic_table.py +23 -6
  52. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugin.py +5 -3
  53. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/3dmol.py +2 -2
  54. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/__init__.py +2 -0
  55. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/abacus.py +2 -0
  56. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/amber.py +3 -1
  57. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/ase.py +178 -23
  58. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/cp2k.py +2 -0
  59. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/deepmd.py +12 -4
  60. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/dftbplus.py +2 -0
  61. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/fhi_aims.py +2 -0
  62. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/gaussian.py +3 -1
  63. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/gromacs.py +2 -0
  64. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/lammps.py +2 -0
  65. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/list.py +2 -0
  66. dpdata-0.2.19/dpdata/plugins/n2p2.py +197 -0
  67. dpdata-0.2.19/dpdata/plugins/openmx.py +72 -0
  68. dpdata-0.2.17/dpdata/plugins/psi4.py → dpdata-0.2.19/dpdata/plugins/orca.py +53 -52
  69. dpdata-0.2.19/dpdata/plugins/psi4.py +104 -0
  70. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/pwmat.py +2 -0
  71. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/pymatgen.py +20 -0
  72. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/qe.py +5 -1
  73. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/rdkit.py +11 -7
  74. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/siesta.py +2 -0
  75. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/vasp.py +9 -5
  76. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/xyz.py +2 -0
  77. dpdata-0.2.19/dpdata/psi4/input.py +62 -0
  78. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/psi4/output.py +74 -66
  79. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/pwmat/atomconfig.py +3 -1
  80. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/pwmat/movement.py +4 -2
  81. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/pymatgen/molecule.py +5 -5
  82. dpdata-0.2.19/dpdata/pymatgen/structure.py +21 -0
  83. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/qe/scf.py +8 -4
  84. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/qe/traj.py +2 -0
  85. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/rdkit/sanitize.py +32 -16
  86. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/rdkit/utils.py +6 -4
  87. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/siesta/aiMD_output.py +1 -0
  88. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/siesta/output.py +1 -0
  89. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/stat.py +21 -9
  90. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/system.py +212 -107
  91. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/unit.py +3 -1
  92. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/utils.py +26 -1
  93. dpdata-0.2.19/dpdata/vasp/__init__.py +0 -0
  94. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/vasp/outcar.py +8 -1
  95. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/vasp/poscar.py +3 -2
  96. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/vasp/xml.py +9 -15
  97. dpdata-0.2.19/dpdata/xyz/__init__.py +0 -0
  98. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/xyz/quip_gap_xyz.py +3 -3
  99. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/xyz/xyz.py +2 -2
  100. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata.egg-info/PKG-INFO +7 -2
  101. dpdata-0.2.19/dpdata.egg-info/SOURCES.txt +133 -0
  102. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata.egg-info/requires.txt +6 -1
  103. {dpdata-0.2.17 → dpdata-0.2.19}/pyproject.toml +35 -4
  104. dpdata-0.2.17/docs/Makefile +0 -20
  105. dpdata-0.2.17/docs/cli.rst +0 -7
  106. dpdata-0.2.17/docs/conf.py +0 -209
  107. dpdata-0.2.17/docs/credits.rst +0 -4
  108. dpdata-0.2.17/docs/drivers.rst +0 -8
  109. dpdata-0.2.17/docs/environment.yml +0 -11
  110. dpdata-0.2.17/docs/formats.rst +0 -15
  111. dpdata-0.2.17/docs/index.rst +0 -30
  112. dpdata-0.2.17/docs/make_format.py +0 -386
  113. dpdata-0.2.17/docs/minimizers.rst +0 -8
  114. dpdata-0.2.17/docs/nb/OUTCAR +0 -2491
  115. dpdata-0.2.17/docs/nb/try_dpdata.ipynb +0 -73
  116. dpdata-0.2.17/docs/requirements.txt +0 -1
  117. dpdata-0.2.17/docs/rtd_environment.yml +0 -6
  118. dpdata-0.2.17/docs/try_dpdata.rst +0 -4
  119. dpdata-0.2.17/dpdata/__about__.py +0 -1
  120. dpdata-0.2.17/dpdata/__init__.py +0 -43
  121. dpdata-0.2.17/dpdata.egg-info/SOURCES.txt +0 -616
  122. dpdata-0.2.17/plugin_example/README.md +0 -25
  123. dpdata-0.2.17/plugin_example/dpdata_random/__init__.py +0 -32
  124. dpdata-0.2.17/plugin_example/pyproject.toml +0 -16
  125. dpdata-0.2.17/tests/.coverage +0 -0
  126. dpdata-0.2.17/tests/POSCAR +0 -17
  127. dpdata-0.2.17/tests/abacus.md/INPUT +0 -42
  128. dpdata-0.2.17/tests/abacus.md/OUT.abacus/MD_dump +0 -80
  129. dpdata-0.2.17/tests/abacus.md/OUT.abacus/running_md.log +0 -2284
  130. dpdata-0.2.17/tests/abacus.md/STRU +0 -32
  131. dpdata-0.2.17/tests/abacus.md/water_coord +0 -15
  132. dpdata-0.2.17/tests/abacus.md/water_force +0 -15
  133. dpdata-0.2.17/tests/abacus.md/water_virial +0 -15
  134. dpdata-0.2.17/tests/abacus.md.newversion/INPUT +0 -37
  135. dpdata-0.2.17/tests/abacus.md.newversion/OUT.Sn_nve/MD_dump +0 -847
  136. dpdata-0.2.17/tests/abacus.md.newversion/OUT.Sn_nve/running_md.log +0 -2954
  137. dpdata-0.2.17/tests/abacus.md.newversion/STRU +0 -84
  138. dpdata-0.2.17/tests/abacus.md.newversion/coord.ref +0 -704
  139. dpdata-0.2.17/tests/abacus.md.newversion/force.ref +0 -704
  140. dpdata-0.2.17/tests/abacus.md.newversion/virial.ref +0 -33
  141. dpdata-0.2.17/tests/abacus.md.nostress/INPUT +0 -26
  142. dpdata-0.2.17/tests/abacus.md.nostress/OUT.autotest/MD_dump +0 -44
  143. dpdata-0.2.17/tests/abacus.md.nostress/OUT.autotest/running_md.log +0 -527
  144. dpdata-0.2.17/tests/abacus.md.nostress/STRU +0 -19
  145. dpdata-0.2.17/tests/abacus.md.nostress/Si_coord +0 -8
  146. dpdata-0.2.17/tests/abacus.md.nostress/Si_force +0 -8
  147. dpdata-0.2.17/tests/abacus.md.unconv/INPUT +0 -29
  148. dpdata-0.2.17/tests/abacus.md.unconv/OUT.ABACUS/MD_dump +0 -176
  149. dpdata-0.2.17/tests/abacus.md.unconv/OUT.ABACUS/running_md.log +0 -5035
  150. dpdata-0.2.17/tests/abacus.md.unconv/STRU +0 -30
  151. dpdata-0.2.17/tests/abacus.md.unconv/water_coord +0 -30
  152. dpdata-0.2.17/tests/abacus.md.unconv/water_force +0 -30
  153. dpdata-0.2.17/tests/abacus.md.unconv/water_virial +0 -30
  154. dpdata-0.2.17/tests/abacus.relax/INPUT +0 -28
  155. dpdata-0.2.17/tests/abacus.relax/KPT +0 -4
  156. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/INPUT +0 -250
  157. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/STRU_ION_D +0 -25
  158. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/STRU_READIN_ADJUST.cif +0 -22
  159. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.abnormal +0 -1186
  160. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.normal +0 -1187
  161. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.nostress +0 -1397
  162. dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.v341 +0 -1450
  163. dpdata-0.2.17/tests/abacus.relax/STRU +0 -29
  164. dpdata-0.2.17/tests/abacus.relax/STRU.Si +0 -24
  165. dpdata-0.2.17/tests/abacus.relax/coord.ref +0 -15
  166. dpdata-0.2.17/tests/abacus.relax/force.ref +0 -15
  167. dpdata-0.2.17/tests/abacus.relax/force.v341.ref +0 -8
  168. dpdata-0.2.17/tests/abacus.relax/stress.ref +0 -15
  169. dpdata-0.2.17/tests/abacus.relax/stress.v341.ref +0 -12
  170. dpdata-0.2.17/tests/abacus.relax/virial.ref +0 -15
  171. dpdata-0.2.17/tests/abacus.scf/INPUT.fail +0 -17
  172. dpdata-0.2.17/tests/abacus.scf/INPUT.ok +0 -17
  173. dpdata-0.2.17/tests/abacus.scf/OUT.ch4/running_scf.log +0 -599
  174. dpdata-0.2.17/tests/abacus.scf/OUT.ch4fail/running_scf.log +0 -598
  175. dpdata-0.2.17/tests/abacus.scf/STRU.ch4 +0 -28
  176. dpdata-0.2.17/tests/abacus.scf/ch4_coord +0 -5
  177. dpdata-0.2.17/tests/abacus.scf/ch4_force +0 -5
  178. dpdata-0.2.17/tests/abacus.scf/ch4_virial +0 -3
  179. dpdata-0.2.17/tests/abacus.scf/stru_test +0 -32
  180. dpdata-0.2.17/tests/amber/02_Heat.mden +0 -110
  181. dpdata-0.2.17/tests/amber/02_Heat.mdfrc +0 -0
  182. dpdata-0.2.17/tests/amber/02_Heat.nc +0 -0
  183. dpdata-0.2.17/tests/amber/02_Heat.parm7 +0 -3991
  184. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/box.npy +0 -0
  185. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/coord.npy +0 -0
  186. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/energy.npy +0 -0
  187. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/force.npy +0 -0
  188. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/type.raw +0 -312
  189. dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/type_map.raw +0 -6
  190. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/box.npy +0 -0
  191. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/coord.npy +0 -0
  192. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/energy.npy +0 -0
  193. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/force.npy +0 -0
  194. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/type.raw +0 -312
  195. dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/type_map.raw +0 -7
  196. dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/box.npy +0 -0
  197. dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/coord.npy +0 -0
  198. dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/energy.npy +0 -0
  199. dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/force.npy +0 -0
  200. dpdata-0.2.17/tests/amber/corr/dp_corr/type.raw +0 -6064
  201. dpdata-0.2.17/tests/amber/corr/dp_corr/type_map.raw +0 -7
  202. dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/box.npy +0 -0
  203. dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/coord.npy +0 -0
  204. dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/energy.npy +0 -0
  205. dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/force.npy +0 -0
  206. dpdata-0.2.17/tests/amber/corr/dp_hl/type.raw +0 -6064
  207. dpdata-0.2.17/tests/amber/corr/dp_hl/type_map.raw +0 -7
  208. dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/box.npy +0 -0
  209. dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/coord.npy +0 -0
  210. dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/energy.npy +0 -0
  211. dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/force.npy +0 -0
  212. dpdata-0.2.17/tests/amber/corr/dp_ll/type.raw +0 -6064
  213. dpdata-0.2.17/tests/amber/corr/dp_ll/type_map.raw +0 -7
  214. dpdata-0.2.17/tests/amber/corr/high_level.mdfrc +0 -0
  215. dpdata-0.2.17/tests/amber/corr/high_level.mdout +0 -500
  216. dpdata-0.2.17/tests/amber/corr/low_level.mdfrc +0 -0
  217. dpdata-0.2.17/tests/amber/corr/low_level.mdout +0 -508
  218. dpdata-0.2.17/tests/amber/corr/qmmm.parm7 +0 -12895
  219. dpdata-0.2.17/tests/amber/corr/rc.nc +0 -0
  220. dpdata-0.2.17/tests/amber/methane.mol +0 -14
  221. dpdata-0.2.17/tests/amber/sqm.in +0 -12
  222. dpdata-0.2.17/tests/amber/sqm_forces.out +0 -392
  223. dpdata-0.2.17/tests/amber/sqm_no_forces.out +0 -138
  224. dpdata-0.2.17/tests/amber/sqm_opt.out +0 -771
  225. dpdata-0.2.17/tests/ase_traj/Al0He4O0/box.raw +0 -1
  226. dpdata-0.2.17/tests/ase_traj/Al0He4O0/coord.raw +0 -1
  227. dpdata-0.2.17/tests/ase_traj/Al0He4O0/energy.raw +0 -1
  228. dpdata-0.2.17/tests/ase_traj/Al0He4O0/force.raw +0 -1
  229. dpdata-0.2.17/tests/ase_traj/Al0He4O0/type.raw +0 -4
  230. dpdata-0.2.17/tests/ase_traj/Al0He4O0/type_map.raw +0 -3
  231. dpdata-0.2.17/tests/ase_traj/Al0He4O0/virial.raw +0 -1
  232. dpdata-0.2.17/tests/ase_traj/Al2He1O3/box.raw +0 -1
  233. dpdata-0.2.17/tests/ase_traj/Al2He1O3/coord.raw +0 -1
  234. dpdata-0.2.17/tests/ase_traj/Al2He1O3/energy.raw +0 -1
  235. dpdata-0.2.17/tests/ase_traj/Al2He1O3/force.raw +0 -1
  236. dpdata-0.2.17/tests/ase_traj/Al2He1O3/type.raw +0 -6
  237. dpdata-0.2.17/tests/ase_traj/Al2He1O3/type_map.raw +0 -3
  238. dpdata-0.2.17/tests/ase_traj/Al2He1O3/virial.raw +0 -1
  239. dpdata-0.2.17/tests/ase_traj/Al2He2O3/box.raw +0 -1
  240. dpdata-0.2.17/tests/ase_traj/Al2He2O3/coord.raw +0 -1
  241. dpdata-0.2.17/tests/ase_traj/Al2He2O3/energy.raw +0 -1
  242. dpdata-0.2.17/tests/ase_traj/Al2He2O3/force.raw +0 -1
  243. dpdata-0.2.17/tests/ase_traj/Al2He2O3/type.raw +0 -7
  244. dpdata-0.2.17/tests/ase_traj/Al2He2O3/type_map.raw +0 -3
  245. dpdata-0.2.17/tests/ase_traj/Al2He2O3/virial.raw +0 -1
  246. dpdata-0.2.17/tests/ase_traj/Al4He0O6/box.raw +0 -1
  247. dpdata-0.2.17/tests/ase_traj/Al4He0O6/coord.raw +0 -1
  248. dpdata-0.2.17/tests/ase_traj/Al4He0O6/energy.raw +0 -1
  249. dpdata-0.2.17/tests/ase_traj/Al4He0O6/force.raw +0 -1
  250. dpdata-0.2.17/tests/ase_traj/Al4He0O6/type.raw +0 -10
  251. dpdata-0.2.17/tests/ase_traj/Al4He0O6/type_map.raw +0 -3
  252. dpdata-0.2.17/tests/ase_traj/Al4He0O6/virial.raw +0 -1
  253. dpdata-0.2.17/tests/ase_traj/Al4He2O6/box.raw +0 -1
  254. dpdata-0.2.17/tests/ase_traj/Al4He2O6/coord.raw +0 -1
  255. dpdata-0.2.17/tests/ase_traj/Al4He2O6/energy.raw +0 -1
  256. dpdata-0.2.17/tests/ase_traj/Al4He2O6/force.raw +0 -1
  257. dpdata-0.2.17/tests/ase_traj/Al4He2O6/type.raw +0 -12
  258. dpdata-0.2.17/tests/ase_traj/Al4He2O6/type_map.raw +0 -3
  259. dpdata-0.2.17/tests/ase_traj/Al4He2O6/virial.raw +0 -1
  260. dpdata-0.2.17/tests/ase_traj/Al4He4O6/box.raw +0 -1
  261. dpdata-0.2.17/tests/ase_traj/Al4He4O6/coord.raw +0 -1
  262. dpdata-0.2.17/tests/ase_traj/Al4He4O6/energy.raw +0 -1
  263. dpdata-0.2.17/tests/ase_traj/Al4He4O6/force.raw +0 -1
  264. dpdata-0.2.17/tests/ase_traj/Al4He4O6/type.raw +0 -14
  265. dpdata-0.2.17/tests/ase_traj/Al4He4O6/type_map.raw +0 -3
  266. dpdata-0.2.17/tests/ase_traj/Al4He4O6/virial.raw +0 -1
  267. dpdata-0.2.17/tests/ase_traj/Al8He0O12/box.raw +0 -3
  268. dpdata-0.2.17/tests/ase_traj/Al8He0O12/coord.raw +0 -3
  269. dpdata-0.2.17/tests/ase_traj/Al8He0O12/energy.raw +0 -3
  270. dpdata-0.2.17/tests/ase_traj/Al8He0O12/force.raw +0 -3
  271. dpdata-0.2.17/tests/ase_traj/Al8He0O12/type.raw +0 -20
  272. dpdata-0.2.17/tests/ase_traj/Al8He0O12/type_map.raw +0 -3
  273. dpdata-0.2.17/tests/ase_traj/Al8He0O12/virial.raw +0 -3
  274. dpdata-0.2.17/tests/ase_traj/Al8He4O12/box.raw +0 -1
  275. dpdata-0.2.17/tests/ase_traj/Al8He4O12/coord.raw +0 -1
  276. dpdata-0.2.17/tests/ase_traj/Al8He4O12/energy.raw +0 -1
  277. dpdata-0.2.17/tests/ase_traj/Al8He4O12/force.raw +0 -1
  278. dpdata-0.2.17/tests/ase_traj/Al8He4O12/type.raw +0 -24
  279. dpdata-0.2.17/tests/ase_traj/Al8He4O12/type_map.raw +0 -3
  280. dpdata-0.2.17/tests/ase_traj/Al8He4O12/virial.raw +0 -1
  281. dpdata-0.2.17/tests/ase_traj/Al8He8O12/box.raw +0 -1
  282. dpdata-0.2.17/tests/ase_traj/Al8He8O12/coord.raw +0 -1
  283. dpdata-0.2.17/tests/ase_traj/Al8He8O12/energy.raw +0 -1
  284. dpdata-0.2.17/tests/ase_traj/Al8He8O12/force.raw +0 -1
  285. dpdata-0.2.17/tests/ase_traj/Al8He8O12/type.raw +0 -28
  286. dpdata-0.2.17/tests/ase_traj/Al8He8O12/type_map.raw +0 -3
  287. dpdata-0.2.17/tests/ase_traj/Al8He8O12/virial.raw +0 -1
  288. dpdata-0.2.17/tests/ase_traj/HeAlO.traj +0 -0
  289. dpdata-0.2.17/tests/bond_order/BOH4-.mol +0 -22
  290. dpdata-0.2.17/tests/bond_order/C5H5-.mol +0 -25
  291. dpdata-0.2.17/tests/bond_order/CH3CC-.mol +0 -16
  292. dpdata-0.2.17/tests/bond_order/CH3NC.mol +0 -16
  293. dpdata-0.2.17/tests/bond_order/CH3NH3+.mol +0 -20
  294. dpdata-0.2.17/tests/bond_order/CH3NO2.mol +0 -18
  295. dpdata-0.2.17/tests/bond_order/CH3OAsO3_2-.mol +0 -22
  296. dpdata-0.2.17/tests/bond_order/CH3OH.mol +0 -16
  297. dpdata-0.2.17/tests/bond_order/CH3OPO3_2-.mol +0 -22
  298. dpdata-0.2.17/tests/bond_order/CH3PH3+.mol +0 -20
  299. dpdata-0.2.17/tests/bond_order/CH3SH.mol +0 -16
  300. dpdata-0.2.17/tests/bond_order/CH3SO3-.mol +0 -20
  301. dpdata-0.2.17/tests/bond_order/CH3_2SO.mol +0 -24
  302. dpdata-0.2.17/tests/bond_order/CH3_2SO2.mol +0 -26
  303. dpdata-0.2.17/tests/bond_order/OCH3+.mol +0 -30
  304. dpdata-0.2.17/tests/bond_order/arg.mol +0 -30
  305. dpdata-0.2.17/tests/bond_order/formal_charge.mol +0 -111
  306. dpdata-0.2.17/tests/bond_order/gly.mol +0 -24
  307. dpdata-0.2.17/tests/bond_order/methane.sdf +0 -60
  308. dpdata-0.2.17/tests/bond_order/methane_ethane.sdf +0 -72
  309. dpdata-0.2.17/tests/bond_order/oxpy.mol +0 -29
  310. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1a4r_ligand_obabel.sdf +0 -107
  311. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1ai5_ligand_obabel.sdf +0 -60
  312. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1f5l_ligand_obabel.sdf +0 -70
  313. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1m1b_ligand_obabel.sdf +0 -45
  314. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1mue_ligand_obabel.sdf +0 -121
  315. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1w4q_ligand_obabel.sdf +0 -84
  316. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/2e94_ligand_obabel.sdf +0 -113
  317. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/4xaq_ligand_obabel.sdf +0 -69
  318. dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/4xtw_ligand_obabel.sdf +0 -161
  319. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1a4r_ligand.sdf +0 -107
  320. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1ai5_ligand.sdf +0 -59
  321. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1f5l_ligand.sdf +0 -69
  322. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1m1b_ligand.sdf +0 -44
  323. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1mue_ligand.sdf +0 -121
  324. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1w4q_ligand.sdf +0 -84
  325. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/2e94_ligand.sdf +0 -113
  326. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/4xaq_ligand.sdf +0 -68
  327. dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/4xtw_ligand.sdf +0 -161
  328. dpdata-0.2.17/tests/comp_sys.py +0 -124
  329. dpdata-0.2.17/tests/computed_structure_entry.json +0 -226
  330. dpdata-0.2.17/tests/context.py +0 -14
  331. dpdata-0.2.17/tests/cp2k/aimd/DPGEN-1.ener +0 -31
  332. dpdata-0.2.17/tests/cp2k/aimd/DPGEN-frc-1.xyz +0 -16050
  333. dpdata-0.2.17/tests/cp2k/aimd/DPGEN-pos-1.xyz +0 -16050
  334. dpdata-0.2.17/tests/cp2k/aimd/cp2k.log +0 -65942
  335. dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/box.npy +0 -0
  336. dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/coord.npy +0 -0
  337. dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/energy.npy +0 -0
  338. dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/force.npy +0 -0
  339. dpdata-0.2.17/tests/cp2k/aimd/deepmd/type.raw +0 -533
  340. dpdata-0.2.17/tests/cp2k/aimd/deepmd/type_map.raw +0 -4
  341. dpdata-0.2.17/tests/cp2k/aimd/input.inp +0 -679
  342. dpdata-0.2.17/tests/cp2k/aimd_stress/DPGEN-pos-1.xyz +0 -7
  343. dpdata-0.2.17/tests/cp2k/aimd_stress/cp2k.log +0 -1992
  344. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/box.npy +0 -0
  345. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/coord.npy +0 -0
  346. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/energy.npy +0 -0
  347. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/force.npy +0 -0
  348. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/virial.npy +0 -0
  349. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/type.raw +0 -5
  350. dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/type_map.raw +0 -2
  351. dpdata-0.2.17/tests/cp2k/aimd_stress/input.inp +0 -108
  352. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/cp2k_output_duplicate_header +0 -2841
  353. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/box.npy +0 -0
  354. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/coord.npy +0 -0
  355. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/energy.npy +0 -0
  356. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/force.npy +0 -0
  357. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/virial.npy +0 -0
  358. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/type.raw +0 -30
  359. dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/type_map.raw +0 -3
  360. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/cp2k_output_element_replace +0 -4541
  361. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/box.npy +0 -0
  362. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/coord.npy +0 -0
  363. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/energy.npy +0 -0
  364. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/force.npy +0 -0
  365. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/virial.npy +0 -0
  366. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/type.raw +0 -601
  367. dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/type_map.raw +0 -4
  368. dpdata-0.2.17/tests/cp2k/cp2k_nocon_output +0 -4344
  369. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/cp2k_output +0 -1657
  370. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/box.npy +0 -0
  371. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/coord.npy +0 -0
  372. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/energy.npy +0 -0
  373. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/force.npy +0 -0
  374. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/virial.npy +0 -0
  375. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/type.raw +0 -30
  376. dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/type_map.raw +0 -3
  377. dpdata-0.2.17/tests/dftbplus/detailed.out +0 -88
  378. dpdata-0.2.17/tests/dftbplus/dftb_pin.hsd +0 -93
  379. dpdata-0.2.17/tests/fhi_aims/out_md +0 -1178
  380. dpdata-0.2.17/tests/fhi_aims/out_scf +0 -2228
  381. dpdata-0.2.17/tests/fhi_aims/output_multi_elements +0 -7209
  382. dpdata-0.2.17/tests/fhi_aims/ref_cell.txt +0 -3
  383. dpdata-0.2.17/tests/fhi_aims/ref_cell_md.txt +0 -9
  384. dpdata-0.2.17/tests/fhi_aims/ref_cell_md_m.txt +0 -19
  385. dpdata-0.2.17/tests/fhi_aims/ref_coord.txt +0 -2
  386. dpdata-0.2.17/tests/fhi_aims/ref_coord_md.txt +0 -9
  387. dpdata-0.2.17/tests/fhi_aims/ref_coord_md_m.txt +0 -480
  388. dpdata-0.2.17/tests/fhi_aims/ref_energy_md.txt +0 -3
  389. dpdata-0.2.17/tests/fhi_aims/ref_energy_md_m.txt +0 -6
  390. dpdata-0.2.17/tests/fhi_aims/ref_force.txt +0 -2
  391. dpdata-0.2.17/tests/fhi_aims/ref_force_md.txt +0 -9
  392. dpdata-0.2.17/tests/fhi_aims/ref_force_md_m.txt +0 -480
  393. dpdata-0.2.17/tests/gaussian/aimd_gaussian_CH4_output +0 -2615
  394. dpdata-0.2.17/tests/gaussian/h2pbc.gaussianlog +0 -301
  395. dpdata-0.2.17/tests/gaussian/largeforce.gaussianlog +0 -20857
  396. dpdata-0.2.17/tests/gaussian/methane.gaussianlog +0 -342
  397. dpdata-0.2.17/tests/gaussian/methane_reordered.gaussianlog +0 -342
  398. dpdata-0.2.17/tests/gaussian/methane_sub.gaussianlog +0 -339
  399. dpdata-0.2.17/tests/gaussian/noncoveraged.gaussianlog +0 -317
  400. dpdata-0.2.17/tests/gaussian/oxygen.gaussianlog +0 -1252
  401. dpdata-0.2.17/tests/gromacs/1h.gro +0 -12
  402. dpdata-0.2.17/tests/gromacs/1h.tri.gro +0 -12
  403. dpdata-0.2.17/tests/gromacs/case_for_format_atom_name.gro +0 -35
  404. dpdata-0.2.17/tests/gromacs/multi_frames.gro +0 -24
  405. dpdata-0.2.17/tests/lammps/traj_with_random_type_id.dump +0 -50
  406. dpdata-0.2.17/tests/plugin/dpdata_plugin_test/__init__.py +0 -16
  407. dpdata-0.2.17/tests/plugin/pyproject.toml +0 -17
  408. dpdata-0.2.17/tests/poscars/6362_OUTCAR +0 -3090
  409. dpdata-0.2.17/tests/poscars/CONTCAR.h2o.md +0 -43
  410. dpdata-0.2.17/tests/poscars/OUTCAR.Ge.vdw +0 -1616
  411. dpdata-0.2.17/tests/poscars/OUTCAR.ch4.1step +0 -710
  412. dpdata-0.2.17/tests/poscars/OUTCAR.ch4.ml +0 -3289
  413. dpdata-0.2.17/tests/poscars/OUTCAR.ch4.unconverged +0 -3133
  414. dpdata-0.2.17/tests/poscars/OUTCAR.h2o.md +0 -2902
  415. dpdata-0.2.17/tests/poscars/OUTCAR.h2o.md.10 +0 -6166
  416. dpdata-0.2.17/tests/poscars/POSCAR.P42nmc +0 -104
  417. dpdata-0.2.17/tests/poscars/POSCAR.P42nmc.replace +0 -104
  418. dpdata-0.2.17/tests/poscars/POSCAR.SiC +0 -16
  419. dpdata-0.2.17/tests/poscars/POSCAR.SiC.const +0 -16
  420. dpdata-0.2.17/tests/poscars/POSCAR.SiC.normal +0 -16
  421. dpdata-0.2.17/tests/poscars/POSCAR.SiC.replicate123 +0 -56
  422. dpdata-0.2.17/tests/poscars/POSCAR.SiC.uniform +0 -16
  423. dpdata-0.2.17/tests/poscars/POSCAR.h2o.md +0 -14
  424. dpdata-0.2.17/tests/poscars/POSCAR.h4o3 +0 -15
  425. dpdata-0.2.17/tests/poscars/POSCAR.oh.c +0 -11
  426. dpdata-0.2.17/tests/poscars/POSCAR.oh.d +0 -10
  427. dpdata-0.2.17/tests/poscars/POSCAR.oh.d.dup +0 -11
  428. dpdata-0.2.17/tests/poscars/conf.5.dump +0 -55
  429. dpdata-0.2.17/tests/poscars/conf.dump +0 -22
  430. dpdata-0.2.17/tests/poscars/conf.lmp +0 -12
  431. dpdata-0.2.17/tests/poscars/conf.waterion.lmp +0 -391
  432. dpdata-0.2.17/tests/poscars/conf2.dump +0 -11
  433. dpdata-0.2.17/tests/poscars/conf_s_su.dump +0 -22
  434. dpdata-0.2.17/tests/poscars/conf_unfold.dump +0 -22
  435. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/box.raw +0 -3
  436. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/coord.raw +0 -3
  437. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/energy.raw +0 -3
  438. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/force.raw +0 -3
  439. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/type.raw +0 -6
  440. dpdata-0.2.17/tests/poscars/deepmd.h2o.md/virial.raw +0 -3
  441. dpdata-0.2.17/tests/poscars/h2o.md.json +0 -369
  442. dpdata-0.2.17/tests/poscars/poscar_ref_oh.py +0 -50
  443. dpdata-0.2.17/tests/poscars/shift_origin.dump +0 -26
  444. dpdata-0.2.17/tests/poscars/test_lammps_dump_s_su.py +0 -27
  445. dpdata-0.2.17/tests/poscars/vasprun.Ge.vdw.xml +0 -1468
  446. dpdata-0.2.17/tests/poscars/vasprun.h2o.md.10.xml +0 -2681
  447. dpdata-0.2.17/tests/poscars/vasprun.h2o.md.tribox.lower.xml +0 -2054
  448. dpdata-0.2.17/tests/poscars/vasprun.h2o.md.tribox.xml +0 -2010
  449. dpdata-0.2.17/tests/poscars/vasprun.h2o.md.xml +0 -1753
  450. dpdata-0.2.17/tests/psi4/psi4.out +0 -549
  451. dpdata-0.2.17/tests/pwmat/MOVEMENT +0 -27776
  452. dpdata-0.2.17/tests/pwmat/OUT.MLMD +0 -18
  453. dpdata-0.2.17/tests/pwmat/atom.config +0 -11
  454. dpdata-0.2.17/tests/pwmat/atom.config.oh +0 -8
  455. dpdata-0.2.17/tests/pwmat/conf.lmp +0 -12
  456. dpdata-0.2.17/tests/pwmat/config_ref_ch4.py +0 -59
  457. dpdata-0.2.17/tests/pwmat/config_ref_oh.py +0 -45
  458. dpdata-0.2.17/tests/pwmat/mlmd_cell +0 -3
  459. dpdata-0.2.17/tests/pwmat/mlmd_coord +0 -5
  460. dpdata-0.2.17/tests/pwmat/mlmd_force +0 -5
  461. dpdata-0.2.17/tests/pwmat/ref_cell +0 -3
  462. dpdata-0.2.17/tests/pwmat/ref_coord +0 -5
  463. dpdata-0.2.17/tests/pwmat/ref_force +0 -5
  464. dpdata-0.2.17/tests/pymatgen_data/FA-001.vasp +0 -16
  465. dpdata-0.2.17/tests/pymatgen_data/FA-001.xyz +0 -10
  466. dpdata-0.2.17/tests/pymatgen_data/mol2-new.vasp +0 -16
  467. dpdata-0.2.17/tests/pymatgen_data/mol2.vasp +0 -16
  468. dpdata-0.2.17/tests/qe.scf/01.in +0 -37
  469. dpdata-0.2.17/tests/qe.scf/01.out +0 -321
  470. dpdata-0.2.17/tests/qe.scf/02.in +0 -230
  471. dpdata-0.2.17/tests/qe.scf/02.out +0 -776
  472. dpdata-0.2.17/tests/qe.scf/Al.in +0 -43
  473. dpdata-0.2.17/tests/qe.scf/Al.out +0 -557
  474. dpdata-0.2.17/tests/qe.scf/ch4_coord +0 -5
  475. dpdata-0.2.17/tests/qe.scf/ch4_force +0 -5
  476. dpdata-0.2.17/tests/qe.scf/ch4_virial +0 -3
  477. dpdata-0.2.17/tests/qe.scf/h2o_cell +0 -3
  478. dpdata-0.2.17/tests/qe.scf/h2o_coord +0 -192
  479. dpdata-0.2.17/tests/qe.scf/h2o_force +0 -192
  480. dpdata-0.2.17/tests/qe.scf/h2o_virial +0 -3
  481. dpdata-0.2.17/tests/qe.traj/oh-md.evp +0 -2
  482. dpdata-0.2.17/tests/qe.traj/oh-md.for +0 -384
  483. dpdata-0.2.17/tests/qe.traj/oh-md.in +0 -256
  484. dpdata-0.2.17/tests/qe.traj/oh-md.pos +0 -384
  485. dpdata-0.2.17/tests/qe.traj/traj6.cel +0 -24
  486. dpdata-0.2.17/tests/qe.traj/traj6.evp +0 -7
  487. dpdata-0.2.17/tests/qe.traj/traj6.for +0 -18
  488. dpdata-0.2.17/tests/qe.traj/traj6.in +0 -67
  489. dpdata-0.2.17/tests/qe.traj/traj6.pos +0 -18
  490. dpdata-0.2.17/tests/siesta/aimd/cell +0 -19
  491. dpdata-0.2.17/tests/siesta/aimd/coord +0 -328
  492. dpdata-0.2.17/tests/siesta/aimd/energy +0 -5
  493. dpdata-0.2.17/tests/siesta/aimd/force +0 -326
  494. dpdata-0.2.17/tests/siesta/aimd/output +0 -1486
  495. dpdata-0.2.17/tests/siesta/aimd/virial +0 -21
  496. dpdata-0.2.17/tests/siesta/scf/ref_cell +0 -3
  497. dpdata-0.2.17/tests/siesta/scf/ref_coord +0 -5
  498. dpdata-0.2.17/tests/siesta/scf/ref_energy +0 -1
  499. dpdata-0.2.17/tests/siesta/scf/ref_force +0 -5
  500. dpdata-0.2.17/tests/siesta/scf/ref_virial +0 -3
  501. dpdata-0.2.17/tests/siesta/scf/siesta_output +0 -614
  502. dpdata-0.2.17/tests/test_abacus_md.py +0 -252
  503. dpdata-0.2.17/tests/test_abacus_pw_scf.py +0 -148
  504. dpdata-0.2.17/tests/test_abacus_relax.py +0 -190
  505. dpdata-0.2.17/tests/test_abacus_stru_dump.py +0 -29
  506. dpdata-0.2.17/tests/test_amber_md.py +0 -56
  507. dpdata-0.2.17/tests/test_amber_sqm.py +0 -81
  508. dpdata-0.2.17/tests/test_ase_traj.py +0 -47
  509. dpdata-0.2.17/tests/test_bond_order_system.py +0 -154
  510. dpdata-0.2.17/tests/test_cell_to_low_triangle.py +0 -67
  511. dpdata-0.2.17/tests/test_cli.py +0 -28
  512. dpdata-0.2.17/tests/test_corr.py +0 -53
  513. dpdata-0.2.17/tests/test_cp2k_aimd_output.py +0 -57
  514. dpdata-0.2.17/tests/test_cp2k_output.py +0 -73
  515. dpdata-0.2.17/tests/test_custom_data_type.py +0 -93
  516. dpdata-0.2.17/tests/test_deepmd_comp.py +0 -93
  517. dpdata-0.2.17/tests/test_deepmd_hdf5.py +0 -72
  518. dpdata-0.2.17/tests/test_deepmd_mixed.py +0 -316
  519. dpdata-0.2.17/tests/test_deepmd_raw.py +0 -193
  520. dpdata-0.2.17/tests/test_dftbplus.py +0 -58
  521. dpdata-0.2.17/tests/test_elements_index.py +0 -29
  522. dpdata-0.2.17/tests/test_empty.py +0 -33
  523. dpdata-0.2.17/tests/test_fhi_md_multi_elem_output.py +0 -62
  524. dpdata-0.2.17/tests/test_fhi_md_output.py +0 -60
  525. dpdata-0.2.17/tests/test_fhi_output.py +0 -76
  526. dpdata-0.2.17/tests/test_gaussian_driver.py +0 -128
  527. dpdata-0.2.17/tests/test_gaussian_gjf.py +0 -27
  528. dpdata-0.2.17/tests/test_gaussian_log.py +0 -107
  529. dpdata-0.2.17/tests/test_gromacs_gro.py +0 -154
  530. dpdata-0.2.17/tests/test_json.py +0 -28
  531. dpdata-0.2.17/tests/test_lammps_dump_idx.py +0 -27
  532. dpdata-0.2.17/tests/test_lammps_dump_shift_origin.py +0 -15
  533. dpdata-0.2.17/tests/test_lammps_dump_skipload.py +0 -20
  534. dpdata-0.2.17/tests/test_lammps_dump_to_system.py +0 -27
  535. dpdata-0.2.17/tests/test_lammps_dump_unfold.py +0 -37
  536. dpdata-0.2.17/tests/test_lammps_lmp_dump.py +0 -29
  537. dpdata-0.2.17/tests/test_lammps_lmp_to_system.py +0 -17
  538. dpdata-0.2.17/tests/test_lammps_read_from_trajs.py +0 -133
  539. dpdata-0.2.17/tests/test_msd.py +0 -31
  540. dpdata-0.2.17/tests/test_multisystems.py +0 -238
  541. dpdata-0.2.17/tests/test_periodic_table.py +0 -31
  542. dpdata-0.2.17/tests/test_perturb.py +0 -172
  543. dpdata-0.2.17/tests/test_pick_atom_idx.py +0 -49
  544. dpdata-0.2.17/tests/test_predict.py +0 -129
  545. dpdata-0.2.17/tests/test_psi4.py +0 -62
  546. dpdata-0.2.17/tests/test_pwmat_config_dump.py +0 -60
  547. dpdata-0.2.17/tests/test_pwmat_config_to_system.py +0 -36
  548. dpdata-0.2.17/tests/test_pwmat_mlmd.py +0 -63
  549. dpdata-0.2.17/tests/test_pwmat_movement.py +0 -67
  550. dpdata-0.2.17/tests/test_pymatgen_molecule.py +0 -39
  551. dpdata-0.2.17/tests/test_qe_cp_traj.py +0 -70
  552. dpdata-0.2.17/tests/test_qe_cp_traj_skipload.py +0 -75
  553. dpdata-0.2.17/tests/test_qe_pw_scf.py +0 -146
  554. dpdata-0.2.17/tests/test_qe_pw_scf_crystal_atomic_positions.py +0 -34
  555. dpdata-0.2.17/tests/test_qe_pw_scf_energy_bug.py +0 -25
  556. dpdata-0.2.17/tests/test_quip_gap_xyz.py +0 -118
  557. dpdata-0.2.17/tests/test_remove_atom_names.py +0 -22
  558. dpdata-0.2.17/tests/test_remove_outlier.py +0 -54
  559. dpdata-0.2.17/tests/test_remove_pbc.py +0 -49
  560. dpdata-0.2.17/tests/test_replace.py +0 -43
  561. dpdata-0.2.17/tests/test_replicate.py +0 -38
  562. dpdata-0.2.17/tests/test_shuffle.py +0 -24
  563. dpdata-0.2.17/tests/test_siesta_aiMD_output.py +0 -160
  564. dpdata-0.2.17/tests/test_siesta_output.py +0 -102
  565. dpdata-0.2.17/tests/test_split_dataset.py +0 -25
  566. dpdata-0.2.17/tests/test_sqm_driver.py +0 -34
  567. dpdata-0.2.17/tests/test_stat.py +0 -31
  568. dpdata-0.2.17/tests/test_system_append.py +0 -58
  569. dpdata-0.2.17/tests/test_system_apply_pbc.py +0 -33
  570. dpdata-0.2.17/tests/test_system_set_type.py +0 -35
  571. dpdata-0.2.17/tests/test_to_ase.py +0 -52
  572. dpdata-0.2.17/tests/test_to_list.py +0 -19
  573. dpdata-0.2.17/tests/test_to_pymatgen.py +0 -32
  574. dpdata-0.2.17/tests/test_to_pymatgen_entry.py +0 -33
  575. dpdata-0.2.17/tests/test_type_map.py +0 -40
  576. dpdata-0.2.17/tests/test_vasp_outcar.py +0 -117
  577. dpdata-0.2.17/tests/test_vasp_poscar_dump.py +0 -60
  578. dpdata-0.2.17/tests/test_vasp_poscar_to_system.py +0 -60
  579. dpdata-0.2.17/tests/test_vasp_unconverged_outcar.py +0 -27
  580. dpdata-0.2.17/tests/test_vasp_xml.py +0 -51
  581. dpdata-0.2.17/tests/test_water_ions.py +0 -65
  582. dpdata-0.2.17/tests/test_xyz.py +0 -44
  583. dpdata-0.2.17/tests/xyz/B1C9/box.raw +0 -2
  584. dpdata-0.2.17/tests/xyz/B1C9/coord.raw +0 -2
  585. dpdata-0.2.17/tests/xyz/B1C9/energy.raw +0 -2
  586. dpdata-0.2.17/tests/xyz/B1C9/force.raw +0 -2
  587. dpdata-0.2.17/tests/xyz/B1C9/type.raw +0 -10
  588. dpdata-0.2.17/tests/xyz/B1C9/type_map.raw +0 -2
  589. dpdata-0.2.17/tests/xyz/B1C9/virial.raw +0 -2
  590. dpdata-0.2.17/tests/xyz/B5C7/box.raw +0 -1
  591. dpdata-0.2.17/tests/xyz/B5C7/coord.raw +0 -1
  592. dpdata-0.2.17/tests/xyz/B5C7/energy.raw +0 -1
  593. dpdata-0.2.17/tests/xyz/B5C7/force.raw +0 -1
  594. dpdata-0.2.17/tests/xyz/B5C7/type.raw +0 -12
  595. dpdata-0.2.17/tests/xyz/B5C7/type_map.raw +0 -2
  596. dpdata-0.2.17/tests/xyz/B5C7/virial.raw +0 -1
  597. dpdata-0.2.17/tests/xyz/B5C7_novirials/box.raw +0 -1
  598. dpdata-0.2.17/tests/xyz/B5C7_novirials/coord.raw +0 -1
  599. dpdata-0.2.17/tests/xyz/B5C7_novirials/energy.raw +0 -1
  600. dpdata-0.2.17/tests/xyz/B5C7_novirials/force.raw +0 -1
  601. dpdata-0.2.17/tests/xyz/B5C7_novirials/type.raw +0 -12
  602. dpdata-0.2.17/tests/xyz/B5C7_novirials/type_map.raw +0 -2
  603. dpdata-0.2.17/tests/xyz/xyz_B5C7_novirials.xyz +0 -14
  604. dpdata-0.2.17/tests/xyz/xyz_unittest.field.xyz +0 -41
  605. dpdata-0.2.17/tests/xyz/xyz_unittest.sort.xyz +0 -38
  606. dpdata-0.2.17/tests/xyz/xyz_unittest.xyz +0 -38
  607. {dpdata-0.2.17 → dpdata-0.2.19}/.git-blame-ignore-revs +0 -0
  608. {dpdata-0.2.17 → dpdata-0.2.19}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  609. {dpdata-0.2.17 → dpdata-0.2.19}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  610. {dpdata-0.2.17 → dpdata-0.2.19}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  611. {dpdata-0.2.17 → dpdata-0.2.19}/.github/ISSUE_TEMPLATE/generic-issue.yml +0 -0
  612. {dpdata-0.2.17 → dpdata-0.2.19}/.github/workflows/mirror_gitee.yml +0 -0
  613. {dpdata-0.2.17 → dpdata-0.2.19}/.github/workflows/pub-pypi.yml +0 -0
  614. {dpdata-0.2.17 → dpdata-0.2.19}/.readthedocs.yaml +0 -0
  615. {dpdata-0.2.17 → dpdata-0.2.19}/LICENSE +0 -0
  616. {dpdata-0.2.17/dpdata/abacus → dpdata-0.2.19/benchmark}/__init__.py +0 -0
  617. {dpdata-0.2.17/dpdata/amber → dpdata-0.2.19/dpdata/abacus}/__init__.py +0 -0
  618. {dpdata-0.2.17/dpdata/cp2k → dpdata-0.2.19/dpdata/amber}/__init__.py +0 -0
  619. {dpdata-0.2.17/dpdata/deepmd → dpdata-0.2.19/dpdata/cp2k}/__init__.py +0 -0
  620. {dpdata-0.2.17/dpdata/dftbplus → dpdata-0.2.19/dpdata/deepmd}/__init__.py +0 -0
  621. {dpdata-0.2.17/dpdata/gromacs → dpdata-0.2.19/dpdata/gaussian}/__init__.py +0 -0
  622. {dpdata-0.2.17/dpdata/lammps → dpdata-0.2.19/dpdata/gromacs}/__init__.py +0 -0
  623. {dpdata-0.2.17/dpdata/md → dpdata-0.2.19/dpdata/lammps}/__init__.py +0 -0
  624. {dpdata-0.2.17/dpdata/psi4 → dpdata-0.2.19/dpdata/md}/__init__.py +0 -0
  625. {dpdata-0.2.17/dpdata/pwmat → dpdata-0.2.19/dpdata/openmx}/__init__.py +0 -0
  626. {dpdata-0.2.17/dpdata/pymatgen → dpdata-0.2.19/dpdata/orca}/__init__.py +0 -0
  627. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/periodic_table.json +0 -0
  628. {dpdata-0.2.17/dpdata/qe → dpdata-0.2.19/dpdata/psi4}/__init__.py +0 -0
  629. {dpdata-0.2.17/dpdata/rdkit → dpdata-0.2.19/dpdata/pwmat}/__init__.py +0 -0
  630. /dpdata-0.2.17/dpdata/siesta/__init__.py → /dpdata-0.2.19/dpdata/py.typed +0 -0
  631. {dpdata-0.2.17/dpdata/vasp → dpdata-0.2.19/dpdata/pymatgen}/__init__.py +0 -0
  632. {dpdata-0.2.17/dpdata/xyz → dpdata-0.2.19/dpdata/qe}/__init__.py +0 -0
  633. /dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/nopbc → /dpdata-0.2.19/dpdata/rdkit/__init__.py +0 -0
  634. /dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/nopbc → /dpdata-0.2.19/dpdata/siesta/__init__.py +0 -0
  635. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata.egg-info/dependency_links.txt +0 -0
  636. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata.egg-info/entry_points.txt +0 -0
  637. {dpdata-0.2.17 → dpdata-0.2.19}/dpdata.egg-info/top_level.txt +0 -0
  638. {dpdata-0.2.17 → dpdata-0.2.19}/setup.cfg +0 -0
@@ -0,0 +1,4 @@
1
+ node: $Format:%H$
2
+ node-date: $Format:%cI$
3
+ describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
4
+ ref-names: $Format:%D$
@@ -0,0 +1 @@
1
+ .git_archival.txt export-subst
@@ -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"
@@ -0,0 +1,23 @@
1
+ name: Python package
2
+
3
+ on:
4
+ - push
5
+ - pull_request
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - name: Set up Python
13
+ uses: actions/setup-python@v5
14
+ with:
15
+ python-version: 3.12
16
+ - run: curl -LsSf https://astral.sh/uv/install.sh | sh
17
+ - name: Install dependencies
18
+ run: uv pip install --system .[amber,ase,pymatgen,benchmark] rdkit openbabel-wheel
19
+ - name: Run benchmarks
20
+ uses: CodSpeedHQ/action@v2
21
+ with:
22
+ token: ${{ secrets.CODSPEED_TOKEN }}
23
+ run: pytest benchmark/ --codspeed
@@ -0,0 +1,19 @@
1
+ on:
2
+ - push
3
+ - pull_request
4
+
5
+ name: Type checker
6
+ jobs:
7
+ pyright:
8
+ name: pyright
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@master
12
+ - uses: actions/setup-python@v5
13
+ with:
14
+ python-version: '3.12'
15
+ - run: pip install uv
16
+ - run: uv pip install --system -e .[amber,ase,pymatgen] rdkit openbabel-wheel
17
+ - uses: jakebailey/pyright-action@v2
18
+ with:
19
+ version: 1.1.363
@@ -9,24 +9,24 @@ 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
- - uses: actions/checkout@v2
15
+ - uses: actions/checkout@v4
16
16
  # set up conda
17
17
  - name: Set up Python ${{ matrix.python-version }}
18
- uses: actions/setup-python@v4
18
+ uses: actions/setup-python@v5
19
19
  with:
20
20
  python-version: ${{ matrix.python-version }}
21
- # install rdkit and openbabel
22
- - name: Install rdkit
23
- run: python -m pip install rdkit openbabel-wheel
21
+ - run: curl -LsSf https://astral.sh/uv/install.sh | sh
24
22
  - name: Install dependencies
25
- run: python -m pip install .[amber,ase,pymatgen] coverage ./tests/plugin
23
+ run: uv pip install --system .[amber,ase,pymatgen] coverage ./tests/plugin rdkit openbabel-wheel
26
24
  - name: Test
27
25
  run: cd tests && coverage run --source=../dpdata -m unittest && cd .. && coverage combine tests/.coverage && coverage report
28
26
  - name: Run codecov
29
- uses: codecov/codecov-action@v3
27
+ uses: codecov/codecov-action@v4
28
+ env:
29
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
30
30
  pass:
31
31
  needs: [build]
32
32
  runs-on: ubuntu-latest
@@ -1,17 +1,18 @@
1
- name: test Python import
2
-
3
- on:
4
- - push
5
- - pull_request
6
-
7
- jobs:
8
- build:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v2
12
- - uses: actions/setup-python@v2
13
- with:
14
- python-version: '3.9'
15
- architecture: 'x64'
16
- - run: python -m pip install .
17
- - run: python -c 'import dpdata'
1
+ name: test Python import
2
+
3
+ on:
4
+ - push
5
+ - pull_request
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: actions/setup-python@v5
13
+ with:
14
+ python-version: '3.9'
15
+ architecture: 'x64'
16
+ - run: python -m pip install uv
17
+ - run: python -m uv pip install --system .
18
+ - run: python -c 'import dpdata'
@@ -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.5.0
5
+ rev: v4.6.0
6
6
  hooks:
7
7
  # there are many log files in tests
8
8
  # TODO: seperate py files and log files
@@ -16,17 +16,18 @@ repos:
16
16
  - id: check-merge-conflict
17
17
  - id: check-symlinks
18
18
  - id: check-toml
19
+ - id: mixed-line-ending
20
+ args: ["--fix=lf"]
19
21
  # Python
20
- - repo: https://github.com/psf/black
21
- rev: 23.10.1
22
- hooks:
23
- - id: black-jupyter
24
22
  - repo: https://github.com/astral-sh/ruff-pre-commit
25
23
  # Ruff version.
26
- rev: v0.1.3
24
+ rev: v0.4.7
27
25
  hooks:
28
26
  - id: ruff
29
27
  args: ["--fix"]
28
+ types_or: [python, pyi, jupyter]
29
+ - id: ruff-format
30
+ types_or: [python, pyi, jupyter]
30
31
  # numpydoc
31
32
  - repo: https://github.com/Carreau/velin
32
33
  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.19
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>
@@ -189,6 +189,7 @@ Requires-Dist: scipy
189
189
  Requires-Dist: h5py
190
190
  Requires-Dist: wcmatch
191
191
  Requires-Dist: importlib_metadata>=1.4; python_version < "3.8"
192
+ Requires-Dist: typing_extensions; python_version < "3.8"
192
193
  Provides-Extra: ase
193
194
  Requires-Dist: ase; extra == "ase"
194
195
  Provides-Extra: amber
@@ -206,7 +207,10 @@ Requires-Dist: deepmodeling-sphinx>=0.1.1; extra == "docs"
206
207
  Requires-Dist: sphinx-argparse; extra == "docs"
207
208
  Requires-Dist: rdkit; extra == "docs"
208
209
  Requires-Dist: jupyterlite-sphinx; extra == "docs"
209
- Requires-Dist: jupyterlite-xeus-python; extra == "docs"
210
+ Requires-Dist: jupyterlite-xeus; extra == "docs"
211
+ Provides-Extra: benchmark
212
+ Requires-Dist: pytest; extra == "benchmark"
213
+ Requires-Dist: pytest-codspeed; extra == "benchmark"
210
214
 
211
215
  # dpdata
212
216
 
@@ -306,6 +310,7 @@ The `System` or `LabeledSystem` can be constructed from the following file forma
306
310
  | ABACUS | STRU | True | True | LabeledSystem | 'abacus/relax' |
307
311
  | ase | structure | True | True | MultiSystems | 'ase/structure' |
308
312
  | DFTB+ | dftbplus | False | True | LabeledSystem | 'dftbplus' |
313
+ | n2p2 | n2p2 | True | True | LabeledSystem | 'n2p2' |
309
314
 
310
315
 
311
316
  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.
@@ -0,0 +1,20 @@
1
+ from __future__ import annotations
2
+
3
+ import subprocess
4
+ import sys
5
+
6
+ import pytest
7
+
8
+
9
+ @pytest.mark.benchmark
10
+ def test_import():
11
+ """Test import dpdata."""
12
+ subprocess.check_output(
13
+ [sys.executable, "-c", "'from dpdata import LabeledSystem'"]
14
+ ).decode("ascii")
15
+
16
+
17
+ @pytest.mark.benchmark
18
+ def test_cli():
19
+ """Test dpdata command."""
20
+ subprocess.check_output([sys.executable, "-m", "dpdata", "-h"]).decode("ascii")
@@ -0,0 +1,3 @@
1
+ from __future__ import annotations
2
+
3
+ __version__ = "unknown"
@@ -0,0 +1,21 @@
1
+ from __future__ import annotations
2
+
3
+ from . import lammps, md, vasp
4
+ from .bond_order_system import BondOrderSystem
5
+ from .system import LabeledSystem, MultiSystems, System
6
+
7
+ try:
8
+ from ._version import version as __version__
9
+ except ImportError:
10
+ from .__about__ import __version__
11
+
12
+ __all__ = [
13
+ "__version__",
14
+ "lammps",
15
+ "md",
16
+ "vasp",
17
+ "System",
18
+ "LabeledSystem",
19
+ "MultiSystems",
20
+ "BondOrderSystem",
21
+ ]
@@ -0,0 +1,6 @@
1
+ from __future__ import annotations
2
+
3
+ from dpdata.cli import dpdata_cli
4
+
5
+ if __name__ == "__main__":
6
+ dpdata_cli()
@@ -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.19'
16
+ __version_tuple__ = version_tuple = (0, 2, 19)
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import os
2
4
  import warnings
3
5
 
@@ -28,7 +30,7 @@ def get_path_out(fname, inlines):
28
30
  for line in inlines:
29
31
  if len(line) > 0 and "suffix" in line and "suffix" == line.split()[0]:
30
32
  suffix = line.split()[1]
31
- path_out = os.path.join(fname, "OUT.%s/" % suffix)
33
+ path_out = os.path.join(fname, f"OUT.{suffix}/")
32
34
  break
33
35
  return path_out
34
36
 
@@ -189,7 +191,7 @@ def get_frame(fname):
189
191
  unconv_stru += "%d " % i
190
192
  ndump = len(energy)
191
193
  if unconv_stru != "":
192
- warnings.warn("Structure %s are unconverged and not collected!" % unconv_stru)
194
+ warnings.warn(f"Structure {unconv_stru} are unconverged and not collected!")
193
195
 
194
196
  for iframe in range(ndump):
195
197
  stress[iframe] *= np.linalg.det(cells[iframe, :, :].reshape([3, 3]))
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import os
2
4
 
3
5
  import numpy as np
@@ -183,7 +185,7 @@ def get_frame(fname):
183
185
  )
184
186
 
185
187
  logf = get_log_file(fname, inlines)
186
- assert os.path.isfile(logf), "Error: can not find %s" % logf
188
+ assert os.path.isfile(logf), f"Error: can not find {logf}"
187
189
  with open(logf) as f1:
188
190
  lines = f1.readlines()
189
191
 
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import os
2
4
  import re
3
5
  import warnings
@@ -10,10 +12,20 @@ bohr2ang = LengthConversion("bohr", "angstrom").value()
10
12
  ry2ev = EnergyConversion("rydberg", "eV").value()
11
13
  kbar2evperang3 = PressureConversion("kbar", "eV/angstrom^3").value()
12
14
 
15
+ ABACUS_STRU_KEYS = [
16
+ "ATOMIC_SPECIES",
17
+ "NUMERICAL_ORBITAL",
18
+ "LATTICE_CONSTANT",
19
+ "LATTICE_VECTORS",
20
+ "ATOMIC_POSITIONS",
21
+ "NUMERICAL_DESCRIPTOR",
22
+ "PAW_FILES",
23
+ ]
24
+
13
25
 
14
26
  def CheckFile(ifile):
15
27
  if not os.path.isfile(ifile):
16
- print("Can not find file %s" % ifile)
28
+ print(f"Can not find file {ifile}")
17
29
  return False
18
30
  return True
19
31
 
@@ -28,10 +40,10 @@ def get_block(lines, keyword, skip=0, nlines=None):
28
40
  found = True
29
41
  blk_idx = idx + 1 + skip
30
42
  line_idx = 0
31
- while len(re.split("\s+", lines[blk_idx])) == 0:
43
+ while len(re.split(r"\s+", lines[blk_idx])) == 0:
32
44
  blk_idx += 1
33
45
  while line_idx < nlines and blk_idx != len(lines):
34
- if len(re.split("\s+", lines[blk_idx])) == 0 or lines[blk_idx] == "":
46
+ if len(re.split(r"\s+", lines[blk_idx])) == 0 or lines[blk_idx] == "":
35
47
  blk_idx += 1
36
48
  continue
37
49
  ret.append(lines[blk_idx])
@@ -43,6 +55,29 @@ def get_block(lines, keyword, skip=0, nlines=None):
43
55
  return ret
44
56
 
45
57
 
58
+ def get_stru_block(lines, keyword):
59
+ # return the block of lines after keyword in STRU file, and skip the blank lines
60
+
61
+ def clean_comment(line):
62
+ return re.split("[#]", line)[0]
63
+
64
+ ret = []
65
+ found = False
66
+ for i in range(len(lines)):
67
+ if clean_comment(lines[i]).strip() == keyword:
68
+ found = True
69
+ for j in range(i + 1, len(lines)):
70
+ if clean_comment(lines[j]).strip() == "":
71
+ continue
72
+ elif clean_comment(lines[j]).strip() in ABACUS_STRU_KEYS:
73
+ break
74
+ else:
75
+ ret.append(clean_comment(lines[j]))
76
+ if not found:
77
+ return None
78
+ return ret
79
+
80
+
46
81
  def get_geometry_in(fname, inlines):
47
82
  geometry_path_in = os.path.join(fname, "STRU")
48
83
  for line in inlines:
@@ -58,14 +93,14 @@ def get_path_out(fname, inlines):
58
93
  for line in inlines:
59
94
  if "suffix" in line and "suffix" == line.split()[0]:
60
95
  suffix = line.split()[1]
61
- path_out = os.path.join(fname, "OUT.%s/running_scf.log" % suffix)
96
+ path_out = os.path.join(fname, f"OUT.{suffix}/running_scf.log")
62
97
  break
63
98
  return path_out
64
99
 
65
100
 
66
101
  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)
102
+ cell_lines = get_stru_block(geometry_inlines, "LATTICE_VECTORS")
103
+ celldm_lines = get_stru_block(geometry_inlines, "LATTICE_CONSTANT")
69
104
 
70
105
  celldm = float(celldm_lines[0].split()[0]) * bohr2ang # lattice const is in Bohr
71
106
  cell = []
@@ -76,7 +111,7 @@ def get_cell(geometry_inlines):
76
111
 
77
112
 
78
113
  def get_coords(celldm, cell, geometry_inlines, inlines=None):
79
- coords_lines = get_block(geometry_inlines, "ATOMIC_POSITIONS", skip=0)
114
+ coords_lines = get_stru_block(geometry_inlines, "ATOMIC_POSITIONS")
80
115
  # assuming that ATOMIC_POSITIONS is at the bottom of the STRU file
81
116
  coord_type = coords_lines[0].split()[0].lower() # cartisan or direct
82
117
  atom_names = [] # element abbr in periodic table
@@ -98,7 +133,7 @@ def get_coords(celldm, cell, geometry_inlines, inlines=None):
98
133
  tmp = np.matmul(xyz, cell)
99
134
  xyz = tmp
100
135
  else:
101
- print("coord_type = %s" % coord_type)
136
+ print(f"coord_type = {coord_type}")
102
137
  raise RuntimeError(
103
138
  "Input coordination type is invalid.\n Only direct and cartesian are accepted."
104
139
  )
@@ -296,7 +331,7 @@ def get_nele_from_stru(geometry_inlines):
296
331
  for iline in range(
297
332
  keyword_line_index[idx] + 1, keyword_line_index[idx + 1]
298
333
  ):
299
- if len(re.split("\s+", geometry_inlines[iline])) >= 3:
334
+ if len(re.split(r"\s+", geometry_inlines[iline])) >= 3:
300
335
  nele += 1
301
336
  return nele
302
337
 
@@ -334,11 +369,11 @@ def make_unlabeled_stru(
334
369
  for iele in range(len(data["atom_names"])):
335
370
  out += data["atom_names"][iele] + " "
336
371
  if mass is not None:
337
- out += "%.3f " % mass[iele]
372
+ out += f"{mass[iele]:.3f} "
338
373
  else:
339
374
  out += "1 "
340
375
  if pp_file is not None:
341
- out += "%s\n" % pp_file[iele]
376
+ out += f"{pp_file[iele]}\n"
342
377
  else:
343
378
  out += "\n"
344
379
  out += "\n"
@@ -347,12 +382,12 @@ def make_unlabeled_stru(
347
382
  assert len(numerical_orbital) == len(data["atom_names"])
348
383
  out += "NUMERICAL_ORBITAL\n"
349
384
  for iele in range(len(numerical_orbital)):
350
- out += "%s\n" % numerical_orbital[iele]
385
+ out += f"{numerical_orbital[iele]}\n"
351
386
  out += "\n"
352
387
 
353
388
  if numerical_descriptor is not None:
354
389
  assert isinstance(numerical_descriptor, str)
355
- out += "NUMERICAL_DESCRIPTOR\n%s\n" % numerical_descriptor
390
+ out += f"NUMERICAL_DESCRIPTOR\n{numerical_descriptor}\n"
356
391
  out += "\n"
357
392
 
358
393
  out += "LATTICE_CONSTANT\n"
@@ -1,4 +1,7 @@
1
1
  """Amber mask."""
2
+
3
+ from __future__ import annotations
4
+
2
5
  try:
3
6
  import parmed
4
7
  except ImportError:
@@ -1,8 +1,9 @@
1
+ from __future__ import annotations
2
+
1
3
  import os
2
4
  import re
3
5
 
4
6
  import numpy as np
5
- from scipy.io import netcdf_file
6
7
 
7
8
  from dpdata.amber.mask import pick_by_amber_mask
8
9
  from dpdata.unit import EnergyConversion
@@ -44,6 +45,8 @@ def read_amber_traj(
44
45
  labeled : bool
45
46
  Whether to return labeled data
46
47
  """
48
+ from scipy.io import netcdf_file
49
+
47
50
  flag_atom_type = False
48
51
  flag_atom_numb = False
49
52
  amber_types = []
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import numpy as np
2
4
 
3
5
  from dpdata.periodic_table import ELEMENTS
@@ -1,6 +1,8 @@
1
- from typing import TYPE_CHECKING, List, Optional
1
+ from __future__ import annotations
2
2
 
3
- from ase.calculators.calculator import (
3
+ from typing import TYPE_CHECKING
4
+
5
+ from ase.calculators.calculator import ( # noqa: TID253
4
6
  Calculator,
5
7
  PropertyNotImplementedError,
6
8
  all_changes,
@@ -23,7 +25,10 @@ class DPDataCalculator(Calculator):
23
25
  dpdata driver
24
26
  """
25
27
 
26
- name = "dpdata"
28
+ @property
29
+ def name(self) -> str:
30
+ return "dpdata"
31
+
27
32
  implemented_properties = ["energy", "free_energy", "forces", "virial", "stress"]
28
33
 
29
34
  def __init__(self, driver: Driver, **kwargs) -> None:
@@ -32,9 +37,9 @@ class DPDataCalculator(Calculator):
32
37
 
33
38
  def calculate(
34
39
  self,
35
- atoms: Optional["Atoms"] = None,
36
- properties: List[str] = ["energy", "forces"],
37
- system_changes: List[str] = all_changes,
40
+ atoms: Atoms | None = None,
41
+ properties: list[str] = ["energy", "forces"],
42
+ system_changes: list[str] = all_changes,
38
43
  ):
39
44
  """Run calculation with a driver.
40
45
 
@@ -48,10 +53,10 @@ class DPDataCalculator(Calculator):
48
53
  system_changes : List[str], optional
49
54
  unused, only for function signature compatibility, by default all_changes
50
55
  """
51
- if atoms is not None:
52
- self.atoms = atoms.copy()
56
+ assert atoms is not None
57
+ atoms = atoms.copy()
53
58
 
54
- system = dpdata.System(self.atoms, fmt="ase/structure")
59
+ system = dpdata.System(atoms, fmt="ase/structure")
55
60
  data = system.predict(driver=self.driver).data
56
61
 
57
62
  self.results["energy"] = data["energies"][0]
@@ -1,9 +1,10 @@
1
1
  # %%
2
2
  # Bond Order System
3
+ from __future__ import annotations
4
+
3
5
  from copy import deepcopy
4
6
 
5
7
  import numpy as np
6
- from rdkit.Chem import Conformer
7
8
 
8
9
  import dpdata.rdkit.utils
9
10
  from dpdata.rdkit.sanitize import Sanitizer
@@ -97,11 +98,14 @@ class BondOrderSystem(System):
97
98
  mol = fmtobj.from_bond_order_system(file_name, **kwargs)
98
99
  self.from_rdkit_mol(mol)
99
100
  if hasattr(fmtobj.from_bond_order_system, "post_func"):
100
- for post_f in fmtobj.from_bond_order_system.post_func:
101
+ for post_f in fmtobj.from_bond_order_system.post_func: # type: ignore
101
102
  self.post_funcs.get_plugin(post_f)(self)
102
103
  return self
103
104
 
104
105
  def to_fmt_obj(self, fmtobj, *args, **kwargs):
106
+ from rdkit.Chem import Conformer
107
+
108
+ assert self.rdkit_mol is not None
105
109
  self.rdkit_mol.RemoveAllConformers()
106
110
  for ii in range(self.get_nframes()):
107
111
  conf = Conformer()
@@ -144,9 +148,9 @@ class BondOrderSystem(System):
144
148
  """Return the formal charges on each atom."""
145
149
  return self.data["formal_charges"]
146
150
 
147
- def copy(self):
151
+ def copy(self): # type: ignore
148
152
  new_mol = deepcopy(self.rdkit_mol)
149
- self.__class__(data=deepcopy(self.data), rdkit_mol=new_mol)
153
+ return self.__class__(data=deepcopy(self.data), rdkit_mol=new_mol)
150
154
 
151
155
  def __add__(self, other):
152
156
  raise NotImplementedError(
@@ -1,6 +1,8 @@
1
1
  """Command line interface for dpdata."""
2
+
3
+ from __future__ import annotations
4
+
2
5
  import argparse
3
- from typing import Optional
4
6
 
5
7
  from . import __version__
6
8
  from .system import LabeledSystem, MultiSystems, System
@@ -36,9 +38,7 @@ def dpdata_parser() -> argparse.ArgumentParser:
36
38
  )
37
39
  parser.add_argument("--type-map", "-t", type=str, nargs="+", help="type map")
38
40
 
39
- parser.add_argument(
40
- "--version", action="version", version="dpdata v%s" % __version__
41
- )
41
+ parser.add_argument("--version", action="version", version=f"dpdata v{__version__}")
42
42
  return parser
43
43
 
44
44
 
@@ -60,11 +60,11 @@ def convert(
60
60
  *,
61
61
  from_file: str,
62
62
  from_format: str = "auto",
63
- to_file: Optional[str] = None,
64
- to_format: Optional[str] = None,
63
+ to_file: str | None = None,
64
+ to_format: str | None = None,
65
65
  no_labeled: bool = False,
66
66
  multi: bool = False,
67
- type_map: Optional[list] = None,
67
+ type_map: list | None = None,
68
68
  **kwargs,
69
69
  ):
70
70
  """Convert files from one format to another one.
@@ -1,4 +1,5 @@
1
1
  # %%
2
+ from __future__ import annotations
2
3
 
3
4
  import numpy as np
4
5
 
@@ -1,4 +1,6 @@
1
1
  # %%
2
+ from __future__ import annotations
3
+
2
4
  import math
3
5
  import re
4
6
  from collections import OrderedDict
@@ -117,9 +119,7 @@ class Cp2kSystems:
117
119
  lines.append(self.xyz_file_object.readline())
118
120
  if not lines[-1]:
119
121
  raise RuntimeError(
120
- "this xyz file may lack of lines, should be {};lines:{}".format(
121
- atom_num + 2, lines
122
- )
122
+ f"this xyz file may lack of lines, should be {atom_num + 2};lines:{lines}"
123
123
  )
124
124
  yield lines
125
125