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.
- dpdata-0.2.19/.git_archival.txt +4 -0
- dpdata-0.2.19/.gitattributes +1 -0
- dpdata-0.2.19/.github/dependabot.yml +7 -0
- dpdata-0.2.19/.github/workflows/benchmark.yml +23 -0
- dpdata-0.2.19/.github/workflows/pyright.yml +19 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/.github/workflows/test.yml +8 -8
- {dpdata-0.2.17 → dpdata-0.2.19}/.github/workflows/test_import.yml +18 -17
- {dpdata-0.2.17 → dpdata-0.2.19}/.gitignore +1 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/.pre-commit-config.yaml +7 -6
- dpdata-0.2.19/MANIFEST.in +3 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/PKG-INFO +7 -2
- {dpdata-0.2.17 → dpdata-0.2.19}/README.md +1 -0
- dpdata-0.2.19/benchmark/test_import.py +20 -0
- dpdata-0.2.19/dpdata/__about__.py +3 -0
- dpdata-0.2.19/dpdata/__init__.py +21 -0
- dpdata-0.2.19/dpdata/__main__.py +6 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/_version.py +2 -2
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/abacus/md.py +4 -2
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/abacus/relax.py +3 -1
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/abacus/scf.py +48 -13
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/amber/mask.py +3 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/amber/md.py +4 -1
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/amber/sqm.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/ase_calculator.py +14 -9
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/bond_order_system.py +8 -4
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/cli.py +7 -7
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/cp2k/cell.py +1 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/cp2k/output.py +3 -3
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/data_type.py +9 -6
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/deepmd/comp.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/deepmd/hdf5.py +9 -7
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/deepmd/mixed.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/deepmd/raw.py +2 -0
- {dpdata-0.2.17/dpdata/fhi_aims → dpdata-0.2.19/dpdata/dftbplus}/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/dftbplus/output.py +2 -2
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/driver.py +12 -6
- {dpdata-0.2.17/dpdata/gaussian → dpdata-0.2.19/dpdata/fhi_aims}/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/fhi_aims/output.py +8 -6
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/format.py +11 -8
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/gaussian/gjf.py +14 -19
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/gaussian/log.py +29 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/gromacs/gro.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/lammps/dump.py +3 -2
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/lammps/lmp.py +1 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/md/msd.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/md/pbc.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/md/rdf.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/md/water.py +2 -0
- dpdata-0.2.19/dpdata/openmx/omx.py +218 -0
- dpdata-0.2.19/dpdata/orca/output.py +64 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/periodic_table.py +23 -6
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugin.py +5 -3
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/3dmol.py +2 -2
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/__init__.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/abacus.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/amber.py +3 -1
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/ase.py +178 -23
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/cp2k.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/deepmd.py +12 -4
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/dftbplus.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/fhi_aims.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/gaussian.py +3 -1
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/gromacs.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/lammps.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/list.py +2 -0
- dpdata-0.2.19/dpdata/plugins/n2p2.py +197 -0
- dpdata-0.2.19/dpdata/plugins/openmx.py +72 -0
- dpdata-0.2.17/dpdata/plugins/psi4.py → dpdata-0.2.19/dpdata/plugins/orca.py +53 -52
- dpdata-0.2.19/dpdata/plugins/psi4.py +104 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/pwmat.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/pymatgen.py +20 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/qe.py +5 -1
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/rdkit.py +11 -7
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/siesta.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/vasp.py +9 -5
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/plugins/xyz.py +2 -0
- dpdata-0.2.19/dpdata/psi4/input.py +62 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/psi4/output.py +74 -66
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/pwmat/atomconfig.py +3 -1
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/pwmat/movement.py +4 -2
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/pymatgen/molecule.py +5 -5
- dpdata-0.2.19/dpdata/pymatgen/structure.py +21 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/qe/scf.py +8 -4
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/qe/traj.py +2 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/rdkit/sanitize.py +32 -16
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/rdkit/utils.py +6 -4
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/siesta/aiMD_output.py +1 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/siesta/output.py +1 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/stat.py +21 -9
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/system.py +212 -107
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/unit.py +3 -1
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/utils.py +26 -1
- dpdata-0.2.19/dpdata/vasp/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/vasp/outcar.py +8 -1
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/vasp/poscar.py +3 -2
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/vasp/xml.py +9 -15
- dpdata-0.2.19/dpdata/xyz/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/xyz/quip_gap_xyz.py +3 -3
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/xyz/xyz.py +2 -2
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata.egg-info/PKG-INFO +7 -2
- dpdata-0.2.19/dpdata.egg-info/SOURCES.txt +133 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata.egg-info/requires.txt +6 -1
- {dpdata-0.2.17 → dpdata-0.2.19}/pyproject.toml +35 -4
- dpdata-0.2.17/docs/Makefile +0 -20
- dpdata-0.2.17/docs/cli.rst +0 -7
- dpdata-0.2.17/docs/conf.py +0 -209
- dpdata-0.2.17/docs/credits.rst +0 -4
- dpdata-0.2.17/docs/drivers.rst +0 -8
- dpdata-0.2.17/docs/environment.yml +0 -11
- dpdata-0.2.17/docs/formats.rst +0 -15
- dpdata-0.2.17/docs/index.rst +0 -30
- dpdata-0.2.17/docs/make_format.py +0 -386
- dpdata-0.2.17/docs/minimizers.rst +0 -8
- dpdata-0.2.17/docs/nb/OUTCAR +0 -2491
- dpdata-0.2.17/docs/nb/try_dpdata.ipynb +0 -73
- dpdata-0.2.17/docs/requirements.txt +0 -1
- dpdata-0.2.17/docs/rtd_environment.yml +0 -6
- dpdata-0.2.17/docs/try_dpdata.rst +0 -4
- dpdata-0.2.17/dpdata/__about__.py +0 -1
- dpdata-0.2.17/dpdata/__init__.py +0 -43
- dpdata-0.2.17/dpdata.egg-info/SOURCES.txt +0 -616
- dpdata-0.2.17/plugin_example/README.md +0 -25
- dpdata-0.2.17/plugin_example/dpdata_random/__init__.py +0 -32
- dpdata-0.2.17/plugin_example/pyproject.toml +0 -16
- dpdata-0.2.17/tests/.coverage +0 -0
- dpdata-0.2.17/tests/POSCAR +0 -17
- dpdata-0.2.17/tests/abacus.md/INPUT +0 -42
- dpdata-0.2.17/tests/abacus.md/OUT.abacus/MD_dump +0 -80
- dpdata-0.2.17/tests/abacus.md/OUT.abacus/running_md.log +0 -2284
- dpdata-0.2.17/tests/abacus.md/STRU +0 -32
- dpdata-0.2.17/tests/abacus.md/water_coord +0 -15
- dpdata-0.2.17/tests/abacus.md/water_force +0 -15
- dpdata-0.2.17/tests/abacus.md/water_virial +0 -15
- dpdata-0.2.17/tests/abacus.md.newversion/INPUT +0 -37
- dpdata-0.2.17/tests/abacus.md.newversion/OUT.Sn_nve/MD_dump +0 -847
- dpdata-0.2.17/tests/abacus.md.newversion/OUT.Sn_nve/running_md.log +0 -2954
- dpdata-0.2.17/tests/abacus.md.newversion/STRU +0 -84
- dpdata-0.2.17/tests/abacus.md.newversion/coord.ref +0 -704
- dpdata-0.2.17/tests/abacus.md.newversion/force.ref +0 -704
- dpdata-0.2.17/tests/abacus.md.newversion/virial.ref +0 -33
- dpdata-0.2.17/tests/abacus.md.nostress/INPUT +0 -26
- dpdata-0.2.17/tests/abacus.md.nostress/OUT.autotest/MD_dump +0 -44
- dpdata-0.2.17/tests/abacus.md.nostress/OUT.autotest/running_md.log +0 -527
- dpdata-0.2.17/tests/abacus.md.nostress/STRU +0 -19
- dpdata-0.2.17/tests/abacus.md.nostress/Si_coord +0 -8
- dpdata-0.2.17/tests/abacus.md.nostress/Si_force +0 -8
- dpdata-0.2.17/tests/abacus.md.unconv/INPUT +0 -29
- dpdata-0.2.17/tests/abacus.md.unconv/OUT.ABACUS/MD_dump +0 -176
- dpdata-0.2.17/tests/abacus.md.unconv/OUT.ABACUS/running_md.log +0 -5035
- dpdata-0.2.17/tests/abacus.md.unconv/STRU +0 -30
- dpdata-0.2.17/tests/abacus.md.unconv/water_coord +0 -30
- dpdata-0.2.17/tests/abacus.md.unconv/water_force +0 -30
- dpdata-0.2.17/tests/abacus.md.unconv/water_virial +0 -30
- dpdata-0.2.17/tests/abacus.relax/INPUT +0 -28
- dpdata-0.2.17/tests/abacus.relax/KPT +0 -4
- dpdata-0.2.17/tests/abacus.relax/OUT.abacus/INPUT +0 -250
- dpdata-0.2.17/tests/abacus.relax/OUT.abacus/STRU_ION_D +0 -25
- dpdata-0.2.17/tests/abacus.relax/OUT.abacus/STRU_READIN_ADJUST.cif +0 -22
- dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.abnormal +0 -1186
- dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.normal +0 -1187
- dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.nostress +0 -1397
- dpdata-0.2.17/tests/abacus.relax/OUT.abacus/running_cell-relax.log.v341 +0 -1450
- dpdata-0.2.17/tests/abacus.relax/STRU +0 -29
- dpdata-0.2.17/tests/abacus.relax/STRU.Si +0 -24
- dpdata-0.2.17/tests/abacus.relax/coord.ref +0 -15
- dpdata-0.2.17/tests/abacus.relax/force.ref +0 -15
- dpdata-0.2.17/tests/abacus.relax/force.v341.ref +0 -8
- dpdata-0.2.17/tests/abacus.relax/stress.ref +0 -15
- dpdata-0.2.17/tests/abacus.relax/stress.v341.ref +0 -12
- dpdata-0.2.17/tests/abacus.relax/virial.ref +0 -15
- dpdata-0.2.17/tests/abacus.scf/INPUT.fail +0 -17
- dpdata-0.2.17/tests/abacus.scf/INPUT.ok +0 -17
- dpdata-0.2.17/tests/abacus.scf/OUT.ch4/running_scf.log +0 -599
- dpdata-0.2.17/tests/abacus.scf/OUT.ch4fail/running_scf.log +0 -598
- dpdata-0.2.17/tests/abacus.scf/STRU.ch4 +0 -28
- dpdata-0.2.17/tests/abacus.scf/ch4_coord +0 -5
- dpdata-0.2.17/tests/abacus.scf/ch4_force +0 -5
- dpdata-0.2.17/tests/abacus.scf/ch4_virial +0 -3
- dpdata-0.2.17/tests/abacus.scf/stru_test +0 -32
- dpdata-0.2.17/tests/amber/02_Heat.mden +0 -110
- dpdata-0.2.17/tests/amber/02_Heat.mdfrc +0 -0
- dpdata-0.2.17/tests/amber/02_Heat.nc +0 -0
- dpdata-0.2.17/tests/amber/02_Heat.parm7 +0 -3991
- dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/box.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/coord.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/energy.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/set.000/force.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/type.raw +0 -312
- dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/type_map.raw +0 -6
- dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/box.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/coord.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/energy.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/set.000/force.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/type.raw +0 -312
- dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/type_map.raw +0 -7
- dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/box.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/coord.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/energy.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_corr/set.000/force.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_corr/type.raw +0 -6064
- dpdata-0.2.17/tests/amber/corr/dp_corr/type_map.raw +0 -7
- dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/box.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/coord.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/energy.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_hl/set.000/force.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_hl/type.raw +0 -6064
- dpdata-0.2.17/tests/amber/corr/dp_hl/type_map.raw +0 -7
- dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/box.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/coord.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/energy.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_ll/set.000/force.npy +0 -0
- dpdata-0.2.17/tests/amber/corr/dp_ll/type.raw +0 -6064
- dpdata-0.2.17/tests/amber/corr/dp_ll/type_map.raw +0 -7
- dpdata-0.2.17/tests/amber/corr/high_level.mdfrc +0 -0
- dpdata-0.2.17/tests/amber/corr/high_level.mdout +0 -500
- dpdata-0.2.17/tests/amber/corr/low_level.mdfrc +0 -0
- dpdata-0.2.17/tests/amber/corr/low_level.mdout +0 -508
- dpdata-0.2.17/tests/amber/corr/qmmm.parm7 +0 -12895
- dpdata-0.2.17/tests/amber/corr/rc.nc +0 -0
- dpdata-0.2.17/tests/amber/methane.mol +0 -14
- dpdata-0.2.17/tests/amber/sqm.in +0 -12
- dpdata-0.2.17/tests/amber/sqm_forces.out +0 -392
- dpdata-0.2.17/tests/amber/sqm_no_forces.out +0 -138
- dpdata-0.2.17/tests/amber/sqm_opt.out +0 -771
- dpdata-0.2.17/tests/ase_traj/Al0He4O0/box.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al0He4O0/coord.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al0He4O0/energy.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al0He4O0/force.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al0He4O0/type.raw +0 -4
- dpdata-0.2.17/tests/ase_traj/Al0He4O0/type_map.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al0He4O0/virial.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al2He1O3/box.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al2He1O3/coord.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al2He1O3/energy.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al2He1O3/force.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al2He1O3/type.raw +0 -6
- dpdata-0.2.17/tests/ase_traj/Al2He1O3/type_map.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al2He1O3/virial.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al2He2O3/box.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al2He2O3/coord.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al2He2O3/energy.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al2He2O3/force.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al2He2O3/type.raw +0 -7
- dpdata-0.2.17/tests/ase_traj/Al2He2O3/type_map.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al2He2O3/virial.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He0O6/box.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He0O6/coord.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He0O6/energy.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He0O6/force.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He0O6/type.raw +0 -10
- dpdata-0.2.17/tests/ase_traj/Al4He0O6/type_map.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al4He0O6/virial.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He2O6/box.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He2O6/coord.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He2O6/energy.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He2O6/force.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He2O6/type.raw +0 -12
- dpdata-0.2.17/tests/ase_traj/Al4He2O6/type_map.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al4He2O6/virial.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He4O6/box.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He4O6/coord.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He4O6/energy.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He4O6/force.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al4He4O6/type.raw +0 -14
- dpdata-0.2.17/tests/ase_traj/Al4He4O6/type_map.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al4He4O6/virial.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al8He0O12/box.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al8He0O12/coord.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al8He0O12/energy.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al8He0O12/force.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al8He0O12/type.raw +0 -20
- dpdata-0.2.17/tests/ase_traj/Al8He0O12/type_map.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al8He0O12/virial.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al8He4O12/box.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al8He4O12/coord.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al8He4O12/energy.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al8He4O12/force.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al8He4O12/type.raw +0 -24
- dpdata-0.2.17/tests/ase_traj/Al8He4O12/type_map.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al8He4O12/virial.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al8He8O12/box.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al8He8O12/coord.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al8He8O12/energy.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al8He8O12/force.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/Al8He8O12/type.raw +0 -28
- dpdata-0.2.17/tests/ase_traj/Al8He8O12/type_map.raw +0 -3
- dpdata-0.2.17/tests/ase_traj/Al8He8O12/virial.raw +0 -1
- dpdata-0.2.17/tests/ase_traj/HeAlO.traj +0 -0
- dpdata-0.2.17/tests/bond_order/BOH4-.mol +0 -22
- dpdata-0.2.17/tests/bond_order/C5H5-.mol +0 -25
- dpdata-0.2.17/tests/bond_order/CH3CC-.mol +0 -16
- dpdata-0.2.17/tests/bond_order/CH3NC.mol +0 -16
- dpdata-0.2.17/tests/bond_order/CH3NH3+.mol +0 -20
- dpdata-0.2.17/tests/bond_order/CH3NO2.mol +0 -18
- dpdata-0.2.17/tests/bond_order/CH3OAsO3_2-.mol +0 -22
- dpdata-0.2.17/tests/bond_order/CH3OH.mol +0 -16
- dpdata-0.2.17/tests/bond_order/CH3OPO3_2-.mol +0 -22
- dpdata-0.2.17/tests/bond_order/CH3PH3+.mol +0 -20
- dpdata-0.2.17/tests/bond_order/CH3SH.mol +0 -16
- dpdata-0.2.17/tests/bond_order/CH3SO3-.mol +0 -20
- dpdata-0.2.17/tests/bond_order/CH3_2SO.mol +0 -24
- dpdata-0.2.17/tests/bond_order/CH3_2SO2.mol +0 -26
- dpdata-0.2.17/tests/bond_order/OCH3+.mol +0 -30
- dpdata-0.2.17/tests/bond_order/arg.mol +0 -30
- dpdata-0.2.17/tests/bond_order/formal_charge.mol +0 -111
- dpdata-0.2.17/tests/bond_order/gly.mol +0 -24
- dpdata-0.2.17/tests/bond_order/methane.sdf +0 -60
- dpdata-0.2.17/tests/bond_order/methane_ethane.sdf +0 -72
- dpdata-0.2.17/tests/bond_order/oxpy.mol +0 -29
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1a4r_ligand_obabel.sdf +0 -107
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1ai5_ligand_obabel.sdf +0 -60
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1f5l_ligand_obabel.sdf +0 -70
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1m1b_ligand_obabel.sdf +0 -45
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1mue_ligand_obabel.sdf +0 -121
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/1w4q_ligand_obabel.sdf +0 -84
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/2e94_ligand_obabel.sdf +0 -113
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/4xaq_ligand_obabel.sdf +0 -69
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/obabel/4xtw_ligand_obabel.sdf +0 -161
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1a4r_ligand.sdf +0 -107
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1ai5_ligand.sdf +0 -59
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1f5l_ligand.sdf +0 -69
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1m1b_ligand.sdf +0 -44
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1mue_ligand.sdf +0 -121
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/1w4q_ligand.sdf +0 -84
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/2e94_ligand.sdf +0 -113
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/4xaq_ligand.sdf +0 -68
- dpdata-0.2.17/tests/bond_order/refined-set-ligands/origin/4xtw_ligand.sdf +0 -161
- dpdata-0.2.17/tests/comp_sys.py +0 -124
- dpdata-0.2.17/tests/computed_structure_entry.json +0 -226
- dpdata-0.2.17/tests/context.py +0 -14
- dpdata-0.2.17/tests/cp2k/aimd/DPGEN-1.ener +0 -31
- dpdata-0.2.17/tests/cp2k/aimd/DPGEN-frc-1.xyz +0 -16050
- dpdata-0.2.17/tests/cp2k/aimd/DPGEN-pos-1.xyz +0 -16050
- dpdata-0.2.17/tests/cp2k/aimd/cp2k.log +0 -65942
- dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/box.npy +0 -0
- dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/coord.npy +0 -0
- dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/energy.npy +0 -0
- dpdata-0.2.17/tests/cp2k/aimd/deepmd/set.000/force.npy +0 -0
- dpdata-0.2.17/tests/cp2k/aimd/deepmd/type.raw +0 -533
- dpdata-0.2.17/tests/cp2k/aimd/deepmd/type_map.raw +0 -4
- dpdata-0.2.17/tests/cp2k/aimd/input.inp +0 -679
- dpdata-0.2.17/tests/cp2k/aimd_stress/DPGEN-pos-1.xyz +0 -7
- dpdata-0.2.17/tests/cp2k/aimd_stress/cp2k.log +0 -1992
- dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/box.npy +0 -0
- dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/coord.npy +0 -0
- dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/energy.npy +0 -0
- dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/force.npy +0 -0
- dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/set.000/virial.npy +0 -0
- dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/type.raw +0 -5
- dpdata-0.2.17/tests/cp2k/aimd_stress/deepmd/type_map.raw +0 -2
- dpdata-0.2.17/tests/cp2k/aimd_stress/input.inp +0 -108
- dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/cp2k_output_duplicate_header +0 -2841
- dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/box.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/coord.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/energy.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/force.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/set.000/virial.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/type.raw +0 -30
- dpdata-0.2.17/tests/cp2k/cp2k_duplicate_header/deepmd/type_map.raw +0 -3
- dpdata-0.2.17/tests/cp2k/cp2k_element_replace/cp2k_output_element_replace +0 -4541
- dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/box.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/coord.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/energy.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/force.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/set.000/virial.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/type.raw +0 -601
- dpdata-0.2.17/tests/cp2k/cp2k_element_replace/deepmd/type_map.raw +0 -4
- dpdata-0.2.17/tests/cp2k/cp2k_nocon_output +0 -4344
- dpdata-0.2.17/tests/cp2k/cp2k_normal_output/cp2k_output +0 -1657
- dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/box.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/coord.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/energy.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/force.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/set.000/virial.npy +0 -0
- dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/type.raw +0 -30
- dpdata-0.2.17/tests/cp2k/cp2k_normal_output/deepmd/type_map.raw +0 -3
- dpdata-0.2.17/tests/dftbplus/detailed.out +0 -88
- dpdata-0.2.17/tests/dftbplus/dftb_pin.hsd +0 -93
- dpdata-0.2.17/tests/fhi_aims/out_md +0 -1178
- dpdata-0.2.17/tests/fhi_aims/out_scf +0 -2228
- dpdata-0.2.17/tests/fhi_aims/output_multi_elements +0 -7209
- dpdata-0.2.17/tests/fhi_aims/ref_cell.txt +0 -3
- dpdata-0.2.17/tests/fhi_aims/ref_cell_md.txt +0 -9
- dpdata-0.2.17/tests/fhi_aims/ref_cell_md_m.txt +0 -19
- dpdata-0.2.17/tests/fhi_aims/ref_coord.txt +0 -2
- dpdata-0.2.17/tests/fhi_aims/ref_coord_md.txt +0 -9
- dpdata-0.2.17/tests/fhi_aims/ref_coord_md_m.txt +0 -480
- dpdata-0.2.17/tests/fhi_aims/ref_energy_md.txt +0 -3
- dpdata-0.2.17/tests/fhi_aims/ref_energy_md_m.txt +0 -6
- dpdata-0.2.17/tests/fhi_aims/ref_force.txt +0 -2
- dpdata-0.2.17/tests/fhi_aims/ref_force_md.txt +0 -9
- dpdata-0.2.17/tests/fhi_aims/ref_force_md_m.txt +0 -480
- dpdata-0.2.17/tests/gaussian/aimd_gaussian_CH4_output +0 -2615
- dpdata-0.2.17/tests/gaussian/h2pbc.gaussianlog +0 -301
- dpdata-0.2.17/tests/gaussian/largeforce.gaussianlog +0 -20857
- dpdata-0.2.17/tests/gaussian/methane.gaussianlog +0 -342
- dpdata-0.2.17/tests/gaussian/methane_reordered.gaussianlog +0 -342
- dpdata-0.2.17/tests/gaussian/methane_sub.gaussianlog +0 -339
- dpdata-0.2.17/tests/gaussian/noncoveraged.gaussianlog +0 -317
- dpdata-0.2.17/tests/gaussian/oxygen.gaussianlog +0 -1252
- dpdata-0.2.17/tests/gromacs/1h.gro +0 -12
- dpdata-0.2.17/tests/gromacs/1h.tri.gro +0 -12
- dpdata-0.2.17/tests/gromacs/case_for_format_atom_name.gro +0 -35
- dpdata-0.2.17/tests/gromacs/multi_frames.gro +0 -24
- dpdata-0.2.17/tests/lammps/traj_with_random_type_id.dump +0 -50
- dpdata-0.2.17/tests/plugin/dpdata_plugin_test/__init__.py +0 -16
- dpdata-0.2.17/tests/plugin/pyproject.toml +0 -17
- dpdata-0.2.17/tests/poscars/6362_OUTCAR +0 -3090
- dpdata-0.2.17/tests/poscars/CONTCAR.h2o.md +0 -43
- dpdata-0.2.17/tests/poscars/OUTCAR.Ge.vdw +0 -1616
- dpdata-0.2.17/tests/poscars/OUTCAR.ch4.1step +0 -710
- dpdata-0.2.17/tests/poscars/OUTCAR.ch4.ml +0 -3289
- dpdata-0.2.17/tests/poscars/OUTCAR.ch4.unconverged +0 -3133
- dpdata-0.2.17/tests/poscars/OUTCAR.h2o.md +0 -2902
- dpdata-0.2.17/tests/poscars/OUTCAR.h2o.md.10 +0 -6166
- dpdata-0.2.17/tests/poscars/POSCAR.P42nmc +0 -104
- dpdata-0.2.17/tests/poscars/POSCAR.P42nmc.replace +0 -104
- dpdata-0.2.17/tests/poscars/POSCAR.SiC +0 -16
- dpdata-0.2.17/tests/poscars/POSCAR.SiC.const +0 -16
- dpdata-0.2.17/tests/poscars/POSCAR.SiC.normal +0 -16
- dpdata-0.2.17/tests/poscars/POSCAR.SiC.replicate123 +0 -56
- dpdata-0.2.17/tests/poscars/POSCAR.SiC.uniform +0 -16
- dpdata-0.2.17/tests/poscars/POSCAR.h2o.md +0 -14
- dpdata-0.2.17/tests/poscars/POSCAR.h4o3 +0 -15
- dpdata-0.2.17/tests/poscars/POSCAR.oh.c +0 -11
- dpdata-0.2.17/tests/poscars/POSCAR.oh.d +0 -10
- dpdata-0.2.17/tests/poscars/POSCAR.oh.d.dup +0 -11
- dpdata-0.2.17/tests/poscars/conf.5.dump +0 -55
- dpdata-0.2.17/tests/poscars/conf.dump +0 -22
- dpdata-0.2.17/tests/poscars/conf.lmp +0 -12
- dpdata-0.2.17/tests/poscars/conf.waterion.lmp +0 -391
- dpdata-0.2.17/tests/poscars/conf2.dump +0 -11
- dpdata-0.2.17/tests/poscars/conf_s_su.dump +0 -22
- dpdata-0.2.17/tests/poscars/conf_unfold.dump +0 -22
- dpdata-0.2.17/tests/poscars/deepmd.h2o.md/box.raw +0 -3
- dpdata-0.2.17/tests/poscars/deepmd.h2o.md/coord.raw +0 -3
- dpdata-0.2.17/tests/poscars/deepmd.h2o.md/energy.raw +0 -3
- dpdata-0.2.17/tests/poscars/deepmd.h2o.md/force.raw +0 -3
- dpdata-0.2.17/tests/poscars/deepmd.h2o.md/type.raw +0 -6
- dpdata-0.2.17/tests/poscars/deepmd.h2o.md/virial.raw +0 -3
- dpdata-0.2.17/tests/poscars/h2o.md.json +0 -369
- dpdata-0.2.17/tests/poscars/poscar_ref_oh.py +0 -50
- dpdata-0.2.17/tests/poscars/shift_origin.dump +0 -26
- dpdata-0.2.17/tests/poscars/test_lammps_dump_s_su.py +0 -27
- dpdata-0.2.17/tests/poscars/vasprun.Ge.vdw.xml +0 -1468
- dpdata-0.2.17/tests/poscars/vasprun.h2o.md.10.xml +0 -2681
- dpdata-0.2.17/tests/poscars/vasprun.h2o.md.tribox.lower.xml +0 -2054
- dpdata-0.2.17/tests/poscars/vasprun.h2o.md.tribox.xml +0 -2010
- dpdata-0.2.17/tests/poscars/vasprun.h2o.md.xml +0 -1753
- dpdata-0.2.17/tests/psi4/psi4.out +0 -549
- dpdata-0.2.17/tests/pwmat/MOVEMENT +0 -27776
- dpdata-0.2.17/tests/pwmat/OUT.MLMD +0 -18
- dpdata-0.2.17/tests/pwmat/atom.config +0 -11
- dpdata-0.2.17/tests/pwmat/atom.config.oh +0 -8
- dpdata-0.2.17/tests/pwmat/conf.lmp +0 -12
- dpdata-0.2.17/tests/pwmat/config_ref_ch4.py +0 -59
- dpdata-0.2.17/tests/pwmat/config_ref_oh.py +0 -45
- dpdata-0.2.17/tests/pwmat/mlmd_cell +0 -3
- dpdata-0.2.17/tests/pwmat/mlmd_coord +0 -5
- dpdata-0.2.17/tests/pwmat/mlmd_force +0 -5
- dpdata-0.2.17/tests/pwmat/ref_cell +0 -3
- dpdata-0.2.17/tests/pwmat/ref_coord +0 -5
- dpdata-0.2.17/tests/pwmat/ref_force +0 -5
- dpdata-0.2.17/tests/pymatgen_data/FA-001.vasp +0 -16
- dpdata-0.2.17/tests/pymatgen_data/FA-001.xyz +0 -10
- dpdata-0.2.17/tests/pymatgen_data/mol2-new.vasp +0 -16
- dpdata-0.2.17/tests/pymatgen_data/mol2.vasp +0 -16
- dpdata-0.2.17/tests/qe.scf/01.in +0 -37
- dpdata-0.2.17/tests/qe.scf/01.out +0 -321
- dpdata-0.2.17/tests/qe.scf/02.in +0 -230
- dpdata-0.2.17/tests/qe.scf/02.out +0 -776
- dpdata-0.2.17/tests/qe.scf/Al.in +0 -43
- dpdata-0.2.17/tests/qe.scf/Al.out +0 -557
- dpdata-0.2.17/tests/qe.scf/ch4_coord +0 -5
- dpdata-0.2.17/tests/qe.scf/ch4_force +0 -5
- dpdata-0.2.17/tests/qe.scf/ch4_virial +0 -3
- dpdata-0.2.17/tests/qe.scf/h2o_cell +0 -3
- dpdata-0.2.17/tests/qe.scf/h2o_coord +0 -192
- dpdata-0.2.17/tests/qe.scf/h2o_force +0 -192
- dpdata-0.2.17/tests/qe.scf/h2o_virial +0 -3
- dpdata-0.2.17/tests/qe.traj/oh-md.evp +0 -2
- dpdata-0.2.17/tests/qe.traj/oh-md.for +0 -384
- dpdata-0.2.17/tests/qe.traj/oh-md.in +0 -256
- dpdata-0.2.17/tests/qe.traj/oh-md.pos +0 -384
- dpdata-0.2.17/tests/qe.traj/traj6.cel +0 -24
- dpdata-0.2.17/tests/qe.traj/traj6.evp +0 -7
- dpdata-0.2.17/tests/qe.traj/traj6.for +0 -18
- dpdata-0.2.17/tests/qe.traj/traj6.in +0 -67
- dpdata-0.2.17/tests/qe.traj/traj6.pos +0 -18
- dpdata-0.2.17/tests/siesta/aimd/cell +0 -19
- dpdata-0.2.17/tests/siesta/aimd/coord +0 -328
- dpdata-0.2.17/tests/siesta/aimd/energy +0 -5
- dpdata-0.2.17/tests/siesta/aimd/force +0 -326
- dpdata-0.2.17/tests/siesta/aimd/output +0 -1486
- dpdata-0.2.17/tests/siesta/aimd/virial +0 -21
- dpdata-0.2.17/tests/siesta/scf/ref_cell +0 -3
- dpdata-0.2.17/tests/siesta/scf/ref_coord +0 -5
- dpdata-0.2.17/tests/siesta/scf/ref_energy +0 -1
- dpdata-0.2.17/tests/siesta/scf/ref_force +0 -5
- dpdata-0.2.17/tests/siesta/scf/ref_virial +0 -3
- dpdata-0.2.17/tests/siesta/scf/siesta_output +0 -614
- dpdata-0.2.17/tests/test_abacus_md.py +0 -252
- dpdata-0.2.17/tests/test_abacus_pw_scf.py +0 -148
- dpdata-0.2.17/tests/test_abacus_relax.py +0 -190
- dpdata-0.2.17/tests/test_abacus_stru_dump.py +0 -29
- dpdata-0.2.17/tests/test_amber_md.py +0 -56
- dpdata-0.2.17/tests/test_amber_sqm.py +0 -81
- dpdata-0.2.17/tests/test_ase_traj.py +0 -47
- dpdata-0.2.17/tests/test_bond_order_system.py +0 -154
- dpdata-0.2.17/tests/test_cell_to_low_triangle.py +0 -67
- dpdata-0.2.17/tests/test_cli.py +0 -28
- dpdata-0.2.17/tests/test_corr.py +0 -53
- dpdata-0.2.17/tests/test_cp2k_aimd_output.py +0 -57
- dpdata-0.2.17/tests/test_cp2k_output.py +0 -73
- dpdata-0.2.17/tests/test_custom_data_type.py +0 -93
- dpdata-0.2.17/tests/test_deepmd_comp.py +0 -93
- dpdata-0.2.17/tests/test_deepmd_hdf5.py +0 -72
- dpdata-0.2.17/tests/test_deepmd_mixed.py +0 -316
- dpdata-0.2.17/tests/test_deepmd_raw.py +0 -193
- dpdata-0.2.17/tests/test_dftbplus.py +0 -58
- dpdata-0.2.17/tests/test_elements_index.py +0 -29
- dpdata-0.2.17/tests/test_empty.py +0 -33
- dpdata-0.2.17/tests/test_fhi_md_multi_elem_output.py +0 -62
- dpdata-0.2.17/tests/test_fhi_md_output.py +0 -60
- dpdata-0.2.17/tests/test_fhi_output.py +0 -76
- dpdata-0.2.17/tests/test_gaussian_driver.py +0 -128
- dpdata-0.2.17/tests/test_gaussian_gjf.py +0 -27
- dpdata-0.2.17/tests/test_gaussian_log.py +0 -107
- dpdata-0.2.17/tests/test_gromacs_gro.py +0 -154
- dpdata-0.2.17/tests/test_json.py +0 -28
- dpdata-0.2.17/tests/test_lammps_dump_idx.py +0 -27
- dpdata-0.2.17/tests/test_lammps_dump_shift_origin.py +0 -15
- dpdata-0.2.17/tests/test_lammps_dump_skipload.py +0 -20
- dpdata-0.2.17/tests/test_lammps_dump_to_system.py +0 -27
- dpdata-0.2.17/tests/test_lammps_dump_unfold.py +0 -37
- dpdata-0.2.17/tests/test_lammps_lmp_dump.py +0 -29
- dpdata-0.2.17/tests/test_lammps_lmp_to_system.py +0 -17
- dpdata-0.2.17/tests/test_lammps_read_from_trajs.py +0 -133
- dpdata-0.2.17/tests/test_msd.py +0 -31
- dpdata-0.2.17/tests/test_multisystems.py +0 -238
- dpdata-0.2.17/tests/test_periodic_table.py +0 -31
- dpdata-0.2.17/tests/test_perturb.py +0 -172
- dpdata-0.2.17/tests/test_pick_atom_idx.py +0 -49
- dpdata-0.2.17/tests/test_predict.py +0 -129
- dpdata-0.2.17/tests/test_psi4.py +0 -62
- dpdata-0.2.17/tests/test_pwmat_config_dump.py +0 -60
- dpdata-0.2.17/tests/test_pwmat_config_to_system.py +0 -36
- dpdata-0.2.17/tests/test_pwmat_mlmd.py +0 -63
- dpdata-0.2.17/tests/test_pwmat_movement.py +0 -67
- dpdata-0.2.17/tests/test_pymatgen_molecule.py +0 -39
- dpdata-0.2.17/tests/test_qe_cp_traj.py +0 -70
- dpdata-0.2.17/tests/test_qe_cp_traj_skipload.py +0 -75
- dpdata-0.2.17/tests/test_qe_pw_scf.py +0 -146
- dpdata-0.2.17/tests/test_qe_pw_scf_crystal_atomic_positions.py +0 -34
- dpdata-0.2.17/tests/test_qe_pw_scf_energy_bug.py +0 -25
- dpdata-0.2.17/tests/test_quip_gap_xyz.py +0 -118
- dpdata-0.2.17/tests/test_remove_atom_names.py +0 -22
- dpdata-0.2.17/tests/test_remove_outlier.py +0 -54
- dpdata-0.2.17/tests/test_remove_pbc.py +0 -49
- dpdata-0.2.17/tests/test_replace.py +0 -43
- dpdata-0.2.17/tests/test_replicate.py +0 -38
- dpdata-0.2.17/tests/test_shuffle.py +0 -24
- dpdata-0.2.17/tests/test_siesta_aiMD_output.py +0 -160
- dpdata-0.2.17/tests/test_siesta_output.py +0 -102
- dpdata-0.2.17/tests/test_split_dataset.py +0 -25
- dpdata-0.2.17/tests/test_sqm_driver.py +0 -34
- dpdata-0.2.17/tests/test_stat.py +0 -31
- dpdata-0.2.17/tests/test_system_append.py +0 -58
- dpdata-0.2.17/tests/test_system_apply_pbc.py +0 -33
- dpdata-0.2.17/tests/test_system_set_type.py +0 -35
- dpdata-0.2.17/tests/test_to_ase.py +0 -52
- dpdata-0.2.17/tests/test_to_list.py +0 -19
- dpdata-0.2.17/tests/test_to_pymatgen.py +0 -32
- dpdata-0.2.17/tests/test_to_pymatgen_entry.py +0 -33
- dpdata-0.2.17/tests/test_type_map.py +0 -40
- dpdata-0.2.17/tests/test_vasp_outcar.py +0 -117
- dpdata-0.2.17/tests/test_vasp_poscar_dump.py +0 -60
- dpdata-0.2.17/tests/test_vasp_poscar_to_system.py +0 -60
- dpdata-0.2.17/tests/test_vasp_unconverged_outcar.py +0 -27
- dpdata-0.2.17/tests/test_vasp_xml.py +0 -51
- dpdata-0.2.17/tests/test_water_ions.py +0 -65
- dpdata-0.2.17/tests/test_xyz.py +0 -44
- dpdata-0.2.17/tests/xyz/B1C9/box.raw +0 -2
- dpdata-0.2.17/tests/xyz/B1C9/coord.raw +0 -2
- dpdata-0.2.17/tests/xyz/B1C9/energy.raw +0 -2
- dpdata-0.2.17/tests/xyz/B1C9/force.raw +0 -2
- dpdata-0.2.17/tests/xyz/B1C9/type.raw +0 -10
- dpdata-0.2.17/tests/xyz/B1C9/type_map.raw +0 -2
- dpdata-0.2.17/tests/xyz/B1C9/virial.raw +0 -2
- dpdata-0.2.17/tests/xyz/B5C7/box.raw +0 -1
- dpdata-0.2.17/tests/xyz/B5C7/coord.raw +0 -1
- dpdata-0.2.17/tests/xyz/B5C7/energy.raw +0 -1
- dpdata-0.2.17/tests/xyz/B5C7/force.raw +0 -1
- dpdata-0.2.17/tests/xyz/B5C7/type.raw +0 -12
- dpdata-0.2.17/tests/xyz/B5C7/type_map.raw +0 -2
- dpdata-0.2.17/tests/xyz/B5C7/virial.raw +0 -1
- dpdata-0.2.17/tests/xyz/B5C7_novirials/box.raw +0 -1
- dpdata-0.2.17/tests/xyz/B5C7_novirials/coord.raw +0 -1
- dpdata-0.2.17/tests/xyz/B5C7_novirials/energy.raw +0 -1
- dpdata-0.2.17/tests/xyz/B5C7_novirials/force.raw +0 -1
- dpdata-0.2.17/tests/xyz/B5C7_novirials/type.raw +0 -12
- dpdata-0.2.17/tests/xyz/B5C7_novirials/type_map.raw +0 -2
- dpdata-0.2.17/tests/xyz/xyz_B5C7_novirials.xyz +0 -14
- dpdata-0.2.17/tests/xyz/xyz_unittest.field.xyz +0 -41
- dpdata-0.2.17/tests/xyz/xyz_unittest.sort.xyz +0 -38
- dpdata-0.2.17/tests/xyz/xyz_unittest.xyz +0 -38
- {dpdata-0.2.17 → dpdata-0.2.19}/.git-blame-ignore-revs +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/.github/ISSUE_TEMPLATE/generic-issue.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/.github/workflows/mirror_gitee.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/.github/workflows/pub-pypi.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/.readthedocs.yaml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/LICENSE +0 -0
- {dpdata-0.2.17/dpdata/abacus → dpdata-0.2.19/benchmark}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/amber → dpdata-0.2.19/dpdata/abacus}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/cp2k → dpdata-0.2.19/dpdata/amber}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/deepmd → dpdata-0.2.19/dpdata/cp2k}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/dftbplus → dpdata-0.2.19/dpdata/deepmd}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/gromacs → dpdata-0.2.19/dpdata/gaussian}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/lammps → dpdata-0.2.19/dpdata/gromacs}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/md → dpdata-0.2.19/dpdata/lammps}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/psi4 → dpdata-0.2.19/dpdata/md}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/pwmat → dpdata-0.2.19/dpdata/openmx}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/pymatgen → dpdata-0.2.19/dpdata/orca}/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata/periodic_table.json +0 -0
- {dpdata-0.2.17/dpdata/qe → dpdata-0.2.19/dpdata/psi4}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/rdkit → dpdata-0.2.19/dpdata/pwmat}/__init__.py +0 -0
- /dpdata-0.2.17/dpdata/siesta/__init__.py → /dpdata-0.2.19/dpdata/py.typed +0 -0
- {dpdata-0.2.17/dpdata/vasp → dpdata-0.2.19/dpdata/pymatgen}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/xyz → dpdata-0.2.19/dpdata/qe}/__init__.py +0 -0
- /dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/nopbc → /dpdata-0.2.19/dpdata/rdkit/__init__.py +0 -0
- /dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/nopbc → /dpdata-0.2.19/dpdata/siesta/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata.egg-info/dependency_links.txt +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata.egg-info/entry_points.txt +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/dpdata.egg-info/top_level.txt +0 -0
- {dpdata-0.2.17 → dpdata-0.2.19}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.git_archival.txt export-subst
|
|
@@ -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.
|
|
12
|
+
python-version: ["3.7", "3.8", "3.12"]
|
|
13
13
|
|
|
14
14
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
16
|
# set up conda
|
|
17
17
|
- name: Set up Python ${{ matrix.python-version }}
|
|
18
|
-
uses: actions/setup-python@
|
|
18
|
+
uses: actions/setup-python@v5
|
|
19
19
|
with:
|
|
20
20
|
python-version: ${{ matrix.python-version }}
|
|
21
|
-
|
|
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:
|
|
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@
|
|
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@
|
|
12
|
-
- uses: actions/setup-python@
|
|
13
|
-
with:
|
|
14
|
-
python-version: '3.9'
|
|
15
|
-
architecture: 'x64'
|
|
16
|
-
- run: python -m pip install
|
|
17
|
-
- run: python -
|
|
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'
|
|
@@ -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
|
+
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.
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dpdata
|
|
3
|
-
Version: 0.2.
|
|
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
|
|
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,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
|
+
]
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
68
|
-
celldm_lines =
|
|
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 =
|
|
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 =
|
|
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 += "
|
|
372
|
+
out += f"{mass[iele]:.3f} "
|
|
338
373
|
else:
|
|
339
374
|
out += "1 "
|
|
340
375
|
if pp_file is not None:
|
|
341
|
-
out += "
|
|
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 += "
|
|
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
|
|
390
|
+
out += f"NUMERICAL_DESCRIPTOR\n{numerical_descriptor}\n"
|
|
356
391
|
out += "\n"
|
|
357
392
|
|
|
358
393
|
out += "LATTICE_CONSTANT\n"
|
|
@@ -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,6 +1,8 @@
|
|
|
1
|
-
from
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
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
|
-
|
|
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:
|
|
36
|
-
properties:
|
|
37
|
-
system_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
|
-
|
|
52
|
-
|
|
56
|
+
assert atoms is not None
|
|
57
|
+
atoms = atoms.copy()
|
|
53
58
|
|
|
54
|
-
system = dpdata.System(
|
|
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:
|
|
64
|
-
to_format:
|
|
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:
|
|
67
|
+
type_map: list | None = None,
|
|
68
68
|
**kwargs,
|
|
69
69
|
):
|
|
70
70
|
"""Convert files from one format to another one.
|
|
@@ -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:{}"
|
|
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
|
|