dpdata 0.2.17__tar.gz → 0.2.18__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dpdata-0.2.18/.github/dependabot.yml +7 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/.github/workflows/test.yml +4 -2
- {dpdata-0.2.17 → dpdata-0.2.18}/.gitignore +1 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/.pre-commit-config.yaml +4 -5
- dpdata-0.2.18/MANIFEST.in +3 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/PKG-INFO +2 -1
- {dpdata-0.2.17 → dpdata-0.2.18}/README.md +1 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/_version.py +2 -2
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/abacus/scf.py +36 -3
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/amber/mask.py +1 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/cli.py +1 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/cp2k/output.py +1 -3
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/deepmd/hdf5.py +1 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/driver.py +3 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/format.py +1 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/gaussian/log.py +27 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/lammps/dump.py +2 -2
- dpdata-0.2.18/dpdata/openmx/omx.py +216 -0
- dpdata-0.2.18/dpdata/orca/output.py +64 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugin.py +3 -3
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/ase.py +111 -1
- dpdata-0.2.18/dpdata/plugins/n2p2.py +195 -0
- dpdata-0.2.18/dpdata/plugins/openmx.py +70 -0
- dpdata-0.2.17/dpdata/plugins/psi4.py → dpdata-0.2.18/dpdata/plugins/orca.py +8 -9
- dpdata-0.2.18/dpdata/plugins/psi4.py +102 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/qe.py +3 -1
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/vasp.py +7 -5
- dpdata-0.2.18/dpdata/psi4/input.py +57 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/psi4/output.py +9 -1
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/pwmat/movement.py +2 -2
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/qe/scf.py +7 -4
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/system.py +1 -3
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/vasp/outcar.py +6 -1
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/vasp/xml.py +8 -15
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/xyz/quip_gap_xyz.py +1 -3
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata.egg-info/PKG-INFO +2 -1
- dpdata-0.2.18/dpdata.egg-info/SOURCES.txt +124 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/pyproject.toml +4 -2
- 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.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.18}/.git-blame-ignore-revs +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/.github/ISSUE_TEMPLATE/generic-issue.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/.github/workflows/mirror_gitee.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/.github/workflows/pub-pypi.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/.github/workflows/test_import.yml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/.readthedocs.yaml +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/LICENSE +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/__about__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/abacus/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/abacus/md.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/abacus/relax.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/amber/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/amber/md.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/amber/sqm.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/ase_calculator.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/bond_order_system.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/cp2k/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/cp2k/cell.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/data_type.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/deepmd/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/deepmd/comp.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/deepmd/mixed.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/deepmd/raw.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/dftbplus/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/dftbplus/output.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/fhi_aims/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/fhi_aims/output.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/gaussian/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/gaussian/gjf.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/gromacs/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/gromacs/gro.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/lammps/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/lammps/lmp.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/md/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/md/msd.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/md/pbc.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/md/rdf.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/md/water.py +0 -0
- {dpdata-0.2.17/dpdata/psi4 → dpdata-0.2.18/dpdata/openmx}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/pwmat → dpdata-0.2.18/dpdata/orca}/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/periodic_table.json +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/periodic_table.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/3dmol.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/abacus.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/amber.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/cp2k.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/deepmd.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/dftbplus.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/fhi_aims.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/gaussian.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/gromacs.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/lammps.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/list.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/pwmat.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/pymatgen.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/rdkit.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/siesta.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/plugins/xyz.py +0 -0
- {dpdata-0.2.17/dpdata/pymatgen → dpdata-0.2.18/dpdata/psi4}/__init__.py +0 -0
- {dpdata-0.2.17/dpdata/qe → dpdata-0.2.18/dpdata/pwmat}/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/pwmat/atomconfig.py +0 -0
- {dpdata-0.2.17/dpdata/rdkit → dpdata-0.2.18/dpdata/pymatgen}/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/pymatgen/molecule.py +0 -0
- {dpdata-0.2.17/dpdata/siesta → dpdata-0.2.18/dpdata/qe}/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/qe/traj.py +0 -0
- {dpdata-0.2.17/dpdata/vasp → dpdata-0.2.18/dpdata/rdkit}/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/rdkit/sanitize.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/rdkit/utils.py +0 -0
- {dpdata-0.2.17/dpdata/xyz → dpdata-0.2.18/dpdata/siesta}/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/siesta/aiMD_output.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/siesta/output.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/stat.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/unit.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/utils.py +0 -0
- /dpdata-0.2.17/tests/amber/corr/dataset/C6H11HW192O6OW96P1/nopbc → /dpdata-0.2.18/dpdata/vasp/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/vasp/poscar.py +0 -0
- /dpdata-0.2.17/tests/amber/corr/dp_amber_mask/C6EP0H11HW192O6OW96P1/nopbc → /dpdata-0.2.18/dpdata/xyz/__init__.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata/xyz/xyz.py +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata.egg-info/dependency_links.txt +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata.egg-info/entry_points.txt +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata.egg-info/requires.txt +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/dpdata.egg-info/top_level.txt +0 -0
- {dpdata-0.2.17 → dpdata-0.2.18}/setup.cfg +0 -0
|
@@ -9,7 +9,7 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
strategy:
|
|
11
11
|
matrix:
|
|
12
|
-
python-version: [3.7, 3.8, 3.
|
|
12
|
+
python-version: ["3.7", "3.8", "3.12"]
|
|
13
13
|
|
|
14
14
|
steps:
|
|
15
15
|
- uses: actions/checkout@v2
|
|
@@ -26,7 +26,9 @@ jobs:
|
|
|
26
26
|
- name: Test
|
|
27
27
|
run: cd tests && coverage run --source=../dpdata -m unittest && cd .. && coverage combine tests/.coverage && coverage report
|
|
28
28
|
- name: Run codecov
|
|
29
|
-
uses: codecov/codecov-action@
|
|
29
|
+
uses: codecov/codecov-action@v4
|
|
30
|
+
env:
|
|
31
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
30
32
|
pass:
|
|
31
33
|
needs: [build]
|
|
32
34
|
runs-on: ubuntu-latest
|
|
@@ -17,16 +17,15 @@ repos:
|
|
|
17
17
|
- id: check-symlinks
|
|
18
18
|
- id: check-toml
|
|
19
19
|
# Python
|
|
20
|
-
- repo: https://github.com/psf/black
|
|
21
|
-
rev: 23.10.1
|
|
22
|
-
hooks:
|
|
23
|
-
- id: black-jupyter
|
|
24
20
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
25
21
|
# Ruff version.
|
|
26
|
-
rev: v0.
|
|
22
|
+
rev: v0.3.5
|
|
27
23
|
hooks:
|
|
28
24
|
- id: ruff
|
|
29
25
|
args: ["--fix"]
|
|
26
|
+
types_or: [python, pyi, jupyter]
|
|
27
|
+
- id: ruff-format
|
|
28
|
+
types_or: [python, pyi, jupyter]
|
|
30
29
|
# numpydoc
|
|
31
30
|
- repo: https://github.com/Carreau/velin
|
|
32
31
|
rev: 0.0.12
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dpdata
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.18
|
|
4
4
|
Summary: Manipulating data formats of DeePMD-kit, VASP, QE, PWmat, and LAMMPS, etc.
|
|
5
5
|
Author: DeepModeling
|
|
6
6
|
Author-email: Han Wang <wang_han@iapcm.ac.cn>
|
|
@@ -306,6 +306,7 @@ The `System` or `LabeledSystem` can be constructed from the following file forma
|
|
|
306
306
|
| ABACUS | STRU | True | True | LabeledSystem | 'abacus/relax' |
|
|
307
307
|
| ase | structure | True | True | MultiSystems | 'ase/structure' |
|
|
308
308
|
| DFTB+ | dftbplus | False | True | LabeledSystem | 'dftbplus' |
|
|
309
|
+
| n2p2 | n2p2 | True | True | LabeledSystem | 'n2p2' |
|
|
309
310
|
|
|
310
311
|
|
|
311
312
|
The Class `dpdata.MultiSystems` can read data from a dir which may contains many files of different systems, or from single xyz file which contains different systems.
|
|
@@ -96,6 +96,7 @@ The `System` or `LabeledSystem` can be constructed from the following file forma
|
|
|
96
96
|
| ABACUS | STRU | True | True | LabeledSystem | 'abacus/relax' |
|
|
97
97
|
| ase | structure | True | True | MultiSystems | 'ase/structure' |
|
|
98
98
|
| DFTB+ | dftbplus | False | True | LabeledSystem | 'dftbplus' |
|
|
99
|
+
| n2p2 | n2p2 | True | True | LabeledSystem | 'n2p2' |
|
|
99
100
|
|
|
100
101
|
|
|
101
102
|
The Class `dpdata.MultiSystems` can read data from a dir which may contains many files of different systems, or from single xyz file which contains different systems.
|
|
@@ -10,6 +10,16 @@ bohr2ang = LengthConversion("bohr", "angstrom").value()
|
|
|
10
10
|
ry2ev = EnergyConversion("rydberg", "eV").value()
|
|
11
11
|
kbar2evperang3 = PressureConversion("kbar", "eV/angstrom^3").value()
|
|
12
12
|
|
|
13
|
+
ABACUS_STRU_KEYS = [
|
|
14
|
+
"ATOMIC_SPECIES",
|
|
15
|
+
"NUMERICAL_ORBITAL",
|
|
16
|
+
"LATTICE_CONSTANT",
|
|
17
|
+
"LATTICE_VECTORS",
|
|
18
|
+
"ATOMIC_POSITIONS",
|
|
19
|
+
"NUMERICAL_DESCRIPTOR",
|
|
20
|
+
"PAW_FILES",
|
|
21
|
+
]
|
|
22
|
+
|
|
13
23
|
|
|
14
24
|
def CheckFile(ifile):
|
|
15
25
|
if not os.path.isfile(ifile):
|
|
@@ -43,6 +53,29 @@ def get_block(lines, keyword, skip=0, nlines=None):
|
|
|
43
53
|
return ret
|
|
44
54
|
|
|
45
55
|
|
|
56
|
+
def get_stru_block(lines, keyword):
|
|
57
|
+
# return the block of lines after keyword in STRU file, and skip the blank lines
|
|
58
|
+
|
|
59
|
+
def clean_comment(line):
|
|
60
|
+
return re.split("[#]", line)[0]
|
|
61
|
+
|
|
62
|
+
ret = []
|
|
63
|
+
found = False
|
|
64
|
+
for i in range(len(lines)):
|
|
65
|
+
if clean_comment(lines[i]).strip() == keyword:
|
|
66
|
+
found = True
|
|
67
|
+
for j in range(i + 1, len(lines)):
|
|
68
|
+
if clean_comment(lines[j]).strip() == "":
|
|
69
|
+
continue
|
|
70
|
+
elif clean_comment(lines[j]).strip() in ABACUS_STRU_KEYS:
|
|
71
|
+
break
|
|
72
|
+
else:
|
|
73
|
+
ret.append(clean_comment(lines[j]))
|
|
74
|
+
if not found:
|
|
75
|
+
return None
|
|
76
|
+
return ret
|
|
77
|
+
|
|
78
|
+
|
|
46
79
|
def get_geometry_in(fname, inlines):
|
|
47
80
|
geometry_path_in = os.path.join(fname, "STRU")
|
|
48
81
|
for line in inlines:
|
|
@@ -64,8 +97,8 @@ def get_path_out(fname, inlines):
|
|
|
64
97
|
|
|
65
98
|
|
|
66
99
|
def get_cell(geometry_inlines):
|
|
67
|
-
cell_lines =
|
|
68
|
-
celldm_lines =
|
|
100
|
+
cell_lines = get_stru_block(geometry_inlines, "LATTICE_VECTORS")
|
|
101
|
+
celldm_lines = get_stru_block(geometry_inlines, "LATTICE_CONSTANT")
|
|
69
102
|
|
|
70
103
|
celldm = float(celldm_lines[0].split()[0]) * bohr2ang # lattice const is in Bohr
|
|
71
104
|
cell = []
|
|
@@ -76,7 +109,7 @@ def get_cell(geometry_inlines):
|
|
|
76
109
|
|
|
77
110
|
|
|
78
111
|
def get_coords(celldm, cell, geometry_inlines, inlines=None):
|
|
79
|
-
coords_lines =
|
|
112
|
+
coords_lines = get_stru_block(geometry_inlines, "ATOMIC_POSITIONS")
|
|
80
113
|
# assuming that ATOMIC_POSITIONS is at the bottom of the STRU file
|
|
81
114
|
coord_type = coords_lines[0].split()[0].lower() # cartisan or direct
|
|
82
115
|
atom_names = [] # element abbr in periodic table
|
|
@@ -117,9 +117,7 @@ class Cp2kSystems:
|
|
|
117
117
|
lines.append(self.xyz_file_object.readline())
|
|
118
118
|
if not lines[-1]:
|
|
119
119
|
raise RuntimeError(
|
|
120
|
-
"this xyz file may lack of lines, should be {};lines:{}"
|
|
121
|
-
atom_num + 2, lines
|
|
122
|
-
)
|
|
120
|
+
f"this xyz file may lack of lines, should be {atom_num + 2};lines:{lines}"
|
|
123
121
|
)
|
|
124
122
|
yield lines
|
|
125
123
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"""Driver plugin system."""
|
|
2
|
+
|
|
2
3
|
from abc import ABC, abstractmethod
|
|
3
4
|
from typing import TYPE_CHECKING, Callable, List, Union
|
|
4
5
|
|
|
@@ -163,6 +164,8 @@ class HybridDriver(Driver):
|
|
|
163
164
|
else:
|
|
164
165
|
labeled_data["energies"] += lb_data["energies"]
|
|
165
166
|
labeled_data["forces"] += lb_data["forces"]
|
|
167
|
+
if "virials" in labeled_data and "virials" in lb_data:
|
|
168
|
+
labeled_data["virials"] += lb_data["virials"]
|
|
166
169
|
return labeled_data
|
|
167
170
|
|
|
168
171
|
|
|
@@ -11,6 +11,25 @@ symbols = ["X"] + ELEMENTS
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def to_system_data(file_name, md=False):
|
|
14
|
+
"""Read Gaussian log file.
|
|
15
|
+
|
|
16
|
+
Parameters
|
|
17
|
+
----------
|
|
18
|
+
file_name : str
|
|
19
|
+
file name
|
|
20
|
+
md : bool, default False
|
|
21
|
+
whether to read multiple frames
|
|
22
|
+
|
|
23
|
+
Returns
|
|
24
|
+
-------
|
|
25
|
+
data : dict
|
|
26
|
+
system data
|
|
27
|
+
|
|
28
|
+
Raises
|
|
29
|
+
------
|
|
30
|
+
RuntimeError
|
|
31
|
+
if the input orientation is not found
|
|
32
|
+
"""
|
|
14
33
|
data = {}
|
|
15
34
|
# read from log lines
|
|
16
35
|
flag = 0
|
|
@@ -20,6 +39,7 @@ def to_system_data(file_name, md=False):
|
|
|
20
39
|
forces_t = []
|
|
21
40
|
cells_t = []
|
|
22
41
|
nopbc = True
|
|
42
|
+
coords = None
|
|
23
43
|
|
|
24
44
|
with open(file_name) as fp:
|
|
25
45
|
for line in fp:
|
|
@@ -44,6 +64,12 @@ def to_system_data(file_name, md=False):
|
|
|
44
64
|
elif flag == 4:
|
|
45
65
|
# forces
|
|
46
66
|
if line.startswith(" -------"):
|
|
67
|
+
if coords is None:
|
|
68
|
+
raise RuntimeError(
|
|
69
|
+
"Input orientation is not found. Using Gaussian keyword "
|
|
70
|
+
"`Geom=PrintInputOrient` to always print the input orientation. "
|
|
71
|
+
"See https://gaussian.com/geom/ for more details."
|
|
72
|
+
)
|
|
47
73
|
forces_t.append(forces)
|
|
48
74
|
energy_t.append(energy)
|
|
49
75
|
coords_t.append(coords)
|
|
@@ -55,6 +81,7 @@ def to_system_data(file_name, md=False):
|
|
|
55
81
|
[[100.0, 0.0, 0.0], [0.0, 100.0, 0.0], [0.0, 0.0, 100.0]]
|
|
56
82
|
)
|
|
57
83
|
flag = 0
|
|
84
|
+
coords = None
|
|
58
85
|
else:
|
|
59
86
|
s = line.split()
|
|
60
87
|
if line[14:16] == "-2":
|
|
@@ -121,8 +121,8 @@ def safe_get_posi(lines, cell, orig=np.zeros(3), unwrap=False):
|
|
|
121
121
|
category=UnwrapWarning,
|
|
122
122
|
)
|
|
123
123
|
return (
|
|
124
|
-
posis % 1
|
|
125
|
-
)
|
|
124
|
+
(posis % 1) @ cell
|
|
125
|
+
) # Convert scaled coordinates back to Cartesien coordinates with wraping at periodic boundary conditions
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
def get_dumpbox(lines):
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
#!/usr/bin/python3
|
|
2
|
+
import numpy as np
|
|
3
|
+
|
|
4
|
+
from ..unit import (
|
|
5
|
+
EnergyConversion,
|
|
6
|
+
ForceConversion,
|
|
7
|
+
LengthConversion,
|
|
8
|
+
PressureConversion,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
ry2ev = EnergyConversion("rydberg", "eV").value()
|
|
12
|
+
kbar2evperang3 = PressureConversion("kbar", "eV/angstrom^3").value()
|
|
13
|
+
|
|
14
|
+
length_convert = LengthConversion("bohr", "angstrom").value()
|
|
15
|
+
energy_convert = EnergyConversion("hartree", "eV").value()
|
|
16
|
+
force_convert = ForceConversion("hartree/bohr", "eV/angstrom").value()
|
|
17
|
+
|
|
18
|
+
import warnings
|
|
19
|
+
from collections import OrderedDict
|
|
20
|
+
|
|
21
|
+
### iterout.c from OpenMX soure code: column numbers and physical quantities ###
|
|
22
|
+
# /* 1: */
|
|
23
|
+
# /* 2,3,4: */
|
|
24
|
+
# /* 5,6,7: force *
|
|
25
|
+
# /* 8: x-component of velocity */
|
|
26
|
+
# /* 9: y-component of velocity */
|
|
27
|
+
# /* 10: z-component of velocity */
|
|
28
|
+
# /* 11: Net charge, electron charge is defined to be negative. */
|
|
29
|
+
# /* 12: magnetic moment (muB) */
|
|
30
|
+
# /* 13,14: angles of spin */
|
|
31
|
+
|
|
32
|
+
# 15: scf_convergence_flag (optional)
|
|
33
|
+
#
|
|
34
|
+
# 1. Move the declaration of `scf_convergence_flag` in `DFT.c` to `openmx_common.h`.
|
|
35
|
+
# 2. Add `scf_convergence_flag` output to the end of `iterout.c` where `*.md` is written.
|
|
36
|
+
# 3. Recompile OpenMX.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def load_atom(lines):
|
|
40
|
+
atom_names = []
|
|
41
|
+
atom_names_mode = False
|
|
42
|
+
for line in lines:
|
|
43
|
+
if "<Atoms.SpeciesAndCoordinates" in line:
|
|
44
|
+
atom_names_mode = True
|
|
45
|
+
elif "Atoms.SpeciesAndCoordinates>" in line:
|
|
46
|
+
atom_names_mode = False
|
|
47
|
+
elif atom_names_mode:
|
|
48
|
+
parts = line.split()
|
|
49
|
+
atom_names.append(parts[1])
|
|
50
|
+
natoms = len(atom_names)
|
|
51
|
+
atom_names_original = atom_names
|
|
52
|
+
atom_names = list(OrderedDict.fromkeys(set(atom_names))) # Python>=3.7
|
|
53
|
+
atom_names = sorted(
|
|
54
|
+
atom_names, key=atom_names_original.index
|
|
55
|
+
) # Unique ordering of atomic species
|
|
56
|
+
ntypes = len(atom_names)
|
|
57
|
+
atom_numbs = [0] * ntypes
|
|
58
|
+
atom_types = []
|
|
59
|
+
atom_types_mode = False
|
|
60
|
+
for line in lines:
|
|
61
|
+
if "<Atoms.SpeciesAndCoordinates" in line:
|
|
62
|
+
atom_types_mode = True
|
|
63
|
+
elif "Atoms.SpeciesAndCoordinates>" in line:
|
|
64
|
+
atom_types_mode = False
|
|
65
|
+
elif atom_types_mode:
|
|
66
|
+
parts = line.split()
|
|
67
|
+
for i, atom_name in enumerate(atom_names):
|
|
68
|
+
if parts[1] == atom_name:
|
|
69
|
+
atom_numbs[i] += 1
|
|
70
|
+
atom_types.append(i)
|
|
71
|
+
atom_types = np.array(atom_types)
|
|
72
|
+
return atom_names, atom_types, atom_numbs
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def load_cells(lines):
|
|
76
|
+
cell, cells = [], []
|
|
77
|
+
for index, line in enumerate(lines):
|
|
78
|
+
if "Cell_Vectors=" in line:
|
|
79
|
+
parts = line.split()
|
|
80
|
+
if len(parts) == 21: # MD.Type is NVT_NH
|
|
81
|
+
cell.append([float(parts[12]), float(parts[13]), float(parts[14])])
|
|
82
|
+
cell.append([float(parts[15]), float(parts[16]), float(parts[17])])
|
|
83
|
+
cell.append([float(parts[18]), float(parts[19]), float(parts[20])])
|
|
84
|
+
elif len(parts) == 16: # MD.Type is Opt
|
|
85
|
+
cell.append([float(parts[7]), float(parts[8]), float(parts[9])])
|
|
86
|
+
cell.append([float(parts[10]), float(parts[11]), float(parts[12])])
|
|
87
|
+
cell.append([float(parts[13]), float(parts[14]), float(parts[15])])
|
|
88
|
+
else:
|
|
89
|
+
raise RuntimeError(
|
|
90
|
+
"Does the file System.Name.md contain unsupported calculation results?"
|
|
91
|
+
)
|
|
92
|
+
cells.append(cell)
|
|
93
|
+
cell = []
|
|
94
|
+
cells = np.array(cells)
|
|
95
|
+
return cells
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# load atom_names, atom_numbs, atom_types, cells
|
|
99
|
+
def load_param_file(fname, mdname):
|
|
100
|
+
with open(fname) as dat_file:
|
|
101
|
+
lines = dat_file.readlines()
|
|
102
|
+
atom_names, atom_types, atom_numbs = load_atom(lines)
|
|
103
|
+
|
|
104
|
+
with open(mdname) as md_file:
|
|
105
|
+
lines = md_file.readlines()
|
|
106
|
+
cells = load_cells(lines)
|
|
107
|
+
return atom_names, atom_numbs, atom_types, cells
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
def load_coords(lines, atom_names, natoms):
|
|
111
|
+
cnt = 0
|
|
112
|
+
coord, coords = [], []
|
|
113
|
+
for index, line in enumerate(lines):
|
|
114
|
+
if "time=" in line:
|
|
115
|
+
continue
|
|
116
|
+
for atom_name in atom_names:
|
|
117
|
+
atom_name += " "
|
|
118
|
+
if atom_name in line:
|
|
119
|
+
cnt += 1
|
|
120
|
+
parts = line.split()
|
|
121
|
+
for_line = [float(parts[1]), float(parts[2]), float(parts[3])]
|
|
122
|
+
coord.append(for_line)
|
|
123
|
+
# It may be necessary to recompile OpenMX to make scf convergence determination.
|
|
124
|
+
if len(parts) == 15 and parts[14] == "0":
|
|
125
|
+
warnings.warn("SCF in System.Name.md has not converged!")
|
|
126
|
+
if cnt == natoms:
|
|
127
|
+
coords.append(coord)
|
|
128
|
+
cnt = 0
|
|
129
|
+
coord = []
|
|
130
|
+
coords = np.array(coords)
|
|
131
|
+
return coords
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def load_data(mdname, atom_names, natoms):
|
|
135
|
+
with open(mdname) as md_file:
|
|
136
|
+
lines = md_file.readlines()
|
|
137
|
+
coords = load_coords(lines, atom_names, natoms)
|
|
138
|
+
steps = [str(i) for i in range(1, coords.shape[0] + 1)]
|
|
139
|
+
return coords, steps
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def to_system_data(fname, mdname):
|
|
143
|
+
data = {}
|
|
144
|
+
(
|
|
145
|
+
data["atom_names"],
|
|
146
|
+
data["atom_numbs"],
|
|
147
|
+
data["atom_types"],
|
|
148
|
+
data["cells"],
|
|
149
|
+
) = load_param_file(fname, mdname)
|
|
150
|
+
data["coords"], steps = load_data(
|
|
151
|
+
mdname,
|
|
152
|
+
data["atom_names"],
|
|
153
|
+
np.sum(data["atom_numbs"]),
|
|
154
|
+
)
|
|
155
|
+
data["orig"] = np.zeros(3)
|
|
156
|
+
return data, steps
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
def load_energy(lines):
|
|
160
|
+
energy = []
|
|
161
|
+
for line in lines:
|
|
162
|
+
if "time=" in line:
|
|
163
|
+
parts = line.split()
|
|
164
|
+
ene_line = float(parts[4]) # Hartree
|
|
165
|
+
energy.append(ene_line)
|
|
166
|
+
continue
|
|
167
|
+
energy = energy_convert * np.array(energy) # Hartree -> eV
|
|
168
|
+
return energy
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
def load_force(lines, atom_names, atom_numbs):
|
|
172
|
+
cnt = 0
|
|
173
|
+
field, fields = [], []
|
|
174
|
+
for index, line in enumerate(lines):
|
|
175
|
+
if "time=" in line:
|
|
176
|
+
continue
|
|
177
|
+
for atom_name in atom_names:
|
|
178
|
+
atom_name += " "
|
|
179
|
+
if atom_name in line:
|
|
180
|
+
cnt += 1
|
|
181
|
+
parts = line.split()
|
|
182
|
+
for_line = [float(parts[4]), float(parts[5]), float(parts[6])]
|
|
183
|
+
field.append(for_line)
|
|
184
|
+
if cnt == np.sum(atom_numbs):
|
|
185
|
+
fields.append(field)
|
|
186
|
+
cnt = 0
|
|
187
|
+
field = []
|
|
188
|
+
force = force_convert * np.array(fields)
|
|
189
|
+
return force
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
# load energy, force
|
|
193
|
+
def to_system_label(fname, mdname):
|
|
194
|
+
atom_names, atom_numbs, atom_types, cells = load_param_file(fname, mdname)
|
|
195
|
+
with open(mdname) as md_file:
|
|
196
|
+
lines = md_file.readlines()
|
|
197
|
+
energy = load_energy(lines)
|
|
198
|
+
force = load_force(lines, atom_names, atom_numbs)
|
|
199
|
+
return energy, force
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
if __name__ == "__main__":
|
|
203
|
+
file_name = "Cdia"
|
|
204
|
+
fname = f"{file_name}.dat"
|
|
205
|
+
mdname = f"{file_name}.md"
|
|
206
|
+
atom_names, atom_numbs, atom_types, cells = load_param_file(fname, mdname)
|
|
207
|
+
coords, steps = load_data(mdname, atom_names, np.sum(atom_numbs))
|
|
208
|
+
data, steps = to_system_data(fname, mdname)
|
|
209
|
+
energy, force = to_system_label(fname, mdname)
|
|
210
|
+
print(atom_names)
|
|
211
|
+
print(atom_numbs)
|
|
212
|
+
print(atom_types)
|
|
213
|
+
# print(cells.shape)
|
|
214
|
+
# print(coords.shape)
|
|
215
|
+
# print(len(energy))
|
|
216
|
+
# print(force.shape)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from typing import Tuple
|
|
2
|
+
|
|
3
|
+
import numpy as np
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def read_orca_sp_output(fn: str) -> Tuple[np.ndarray, np.ndarray, float, np.ndarray]:
|
|
7
|
+
"""Read from ORCA output.
|
|
8
|
+
|
|
9
|
+
Note that both the energy and the gradient should be printed.
|
|
10
|
+
|
|
11
|
+
Parameters
|
|
12
|
+
----------
|
|
13
|
+
fn : str
|
|
14
|
+
file name
|
|
15
|
+
|
|
16
|
+
Returns
|
|
17
|
+
-------
|
|
18
|
+
np.ndarray
|
|
19
|
+
atomic symbols
|
|
20
|
+
np.ndarray
|
|
21
|
+
atomic coordinates
|
|
22
|
+
float
|
|
23
|
+
total potential energy
|
|
24
|
+
np.ndarray
|
|
25
|
+
atomic forces
|
|
26
|
+
"""
|
|
27
|
+
coord = None
|
|
28
|
+
symbols = None
|
|
29
|
+
forces = None
|
|
30
|
+
energy = None
|
|
31
|
+
with open(fn) as f:
|
|
32
|
+
flag = 0
|
|
33
|
+
for line in f:
|
|
34
|
+
if flag in (1, 3, 4):
|
|
35
|
+
flag += 1
|
|
36
|
+
elif flag == 2:
|
|
37
|
+
s = line.split()
|
|
38
|
+
if not len(s):
|
|
39
|
+
flag = 0
|
|
40
|
+
else:
|
|
41
|
+
symbols.append(s[0].capitalize())
|
|
42
|
+
coord.append([float(s[1]), float(s[2]), float(s[3])])
|
|
43
|
+
elif flag == 5:
|
|
44
|
+
s = line.split()
|
|
45
|
+
if not len(s):
|
|
46
|
+
flag = 0
|
|
47
|
+
else:
|
|
48
|
+
forces.append([float(s[3]), float(s[4]), float(s[5])])
|
|
49
|
+
elif line.startswith("CARTESIAN COORDINATES (ANGSTROEM)"):
|
|
50
|
+
# coord
|
|
51
|
+
flag = 1
|
|
52
|
+
coord = []
|
|
53
|
+
symbols = []
|
|
54
|
+
elif line.startswith("CARTESIAN GRADIENT"):
|
|
55
|
+
flag = 3
|
|
56
|
+
forces = []
|
|
57
|
+
elif line.startswith("FINAL SINGLE POINT ENERGY"):
|
|
58
|
+
energy = float(line.split()[-1])
|
|
59
|
+
symbols = np.array(symbols)
|
|
60
|
+
forces = -np.array(forces)
|
|
61
|
+
coord = np.array(coord)
|
|
62
|
+
assert coord.shape == forces.shape
|
|
63
|
+
|
|
64
|
+
return symbols, coord, energy, forces
|
|
@@ -6,11 +6,11 @@ class Plugin:
|
|
|
6
6
|
|
|
7
7
|
Examples
|
|
8
8
|
--------
|
|
9
|
-
>>>
|
|
10
|
-
>>> @
|
|
9
|
+
>>> example_plugin = Plugin()
|
|
10
|
+
>>> @example_plugin.register("xx")
|
|
11
11
|
def xxx():
|
|
12
12
|
pass
|
|
13
|
-
>>> print(
|
|
13
|
+
>>> print(example_plugin.plugins['xx'])
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
def __init__(self):
|