dpdata 0.2.20__tar.gz → 0.2.21__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.20 → dpdata-0.2.21}/.pre-commit-config.yaml +1 -1
- {dpdata-0.2.20 → dpdata-0.2.21}/PKG-INFO +1 -1
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/_version.py +2 -2
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/abacus/md.py +8 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/abacus/relax.py +8 -0
- dpdata-0.2.21/dpdata/abacus/scf.py +850 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/data_type.py +4 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/deepmd/comp.py +5 -57
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/deepmd/hdf5.py +7 -54
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/deepmd/raw.py +4 -41
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/abacus.py +36 -19
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/ase.py +11 -1
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/qe/scf.py +27 -6
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/system.py +27 -6
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata.egg-info/PKG-INFO +1 -1
- dpdata-0.2.20/dpdata/abacus/scf.py +0 -430
- {dpdata-0.2.20 → dpdata-0.2.21}/.git-blame-ignore-revs +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.git_archival.txt +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.gitattributes +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.github/ISSUE_TEMPLATE/generic-issue.yml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.github/dependabot.yml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.github/workflows/benchmark.yml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.github/workflows/mirror_gitee.yml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.github/workflows/pub-pypi.yml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.github/workflows/pyright.yml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.github/workflows/test.yml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.github/workflows/test_import.yml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.gitignore +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/.readthedocs.yaml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/LICENSE +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/MANIFEST.in +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/README.md +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/benchmark/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/benchmark/test_import.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/__about__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/__main__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/abacus/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/amber/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/amber/mask.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/amber/md.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/amber/sqm.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/ase_calculator.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/bond_order_system.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/cli.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/cp2k/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/cp2k/cell.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/cp2k/output.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/deepmd/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/deepmd/mixed.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/dftbplus/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/dftbplus/output.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/driver.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/fhi_aims/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/fhi_aims/output.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/format.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/gaussian/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/gaussian/gjf.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/gaussian/log.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/gromacs/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/gromacs/gro.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/lammps/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/lammps/dump.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/lammps/lmp.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/md/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/md/msd.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/md/pbc.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/md/rdf.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/md/water.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/openmx/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/openmx/omx.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/orca/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/orca/output.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/periodic_table.json +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/periodic_table.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugin.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/3dmol.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/amber.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/cp2k.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/deepmd.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/dftbplus.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/fhi_aims.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/gaussian.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/gromacs.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/lammps.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/list.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/n2p2.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/openmx.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/orca.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/psi4.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/pwmat.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/pymatgen.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/qe.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/rdkit.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/siesta.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/vasp.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/plugins/xyz.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/psi4/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/psi4/input.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/psi4/output.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/pwmat/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/pwmat/atomconfig.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/pwmat/movement.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/py.typed +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/pymatgen/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/pymatgen/molecule.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/pymatgen/structure.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/qe/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/qe/traj.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/rdkit/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/rdkit/sanitize.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/rdkit/utils.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/siesta/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/siesta/aiMD_output.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/siesta/output.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/stat.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/unit.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/utils.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/vasp/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/vasp/outcar.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/vasp/poscar.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/vasp/xml.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/xyz/__init__.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/xyz/quip_gap_xyz.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata/xyz/xyz.py +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata.egg-info/SOURCES.txt +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata.egg-info/dependency_links.txt +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata.egg-info/entry_points.txt +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata.egg-info/requires.txt +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/dpdata.egg-info/top_level.txt +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/pyproject.toml +0 -0
- {dpdata-0.2.20 → dpdata-0.2.21}/setup.cfg +0 -0
|
@@ -12,6 +12,7 @@ from .scf import (
|
|
|
12
12
|
get_cell,
|
|
13
13
|
get_coords,
|
|
14
14
|
get_geometry_in,
|
|
15
|
+
get_mag_force,
|
|
15
16
|
kbar2evperang3,
|
|
16
17
|
)
|
|
17
18
|
|
|
@@ -199,6 +200,9 @@ def get_frame(fname):
|
|
|
199
200
|
stress[iframe] *= np.linalg.det(cells[iframe, :, :].reshape([3, 3]))
|
|
200
201
|
if np.sum(np.abs(stress[0])) < 1e-10:
|
|
201
202
|
stress = None
|
|
203
|
+
|
|
204
|
+
magmom, magforce = get_mag_force(outlines)
|
|
205
|
+
|
|
202
206
|
data = {}
|
|
203
207
|
data["atom_names"] = atom_names
|
|
204
208
|
data["atom_numbs"] = natoms
|
|
@@ -213,5 +217,9 @@ def get_frame(fname):
|
|
|
213
217
|
if not isinstance(data["virials"], np.ndarray):
|
|
214
218
|
del data["virials"]
|
|
215
219
|
data["orig"] = np.zeros(3)
|
|
220
|
+
if len(magmom) > 0:
|
|
221
|
+
data["spins"] = magmom
|
|
222
|
+
if len(magforce) > 0:
|
|
223
|
+
data["mag_forces"] = magforce
|
|
216
224
|
|
|
217
225
|
return data
|
|
@@ -13,6 +13,7 @@ from .scf import (
|
|
|
13
13
|
get_cell,
|
|
14
14
|
get_coords,
|
|
15
15
|
get_geometry_in,
|
|
16
|
+
get_mag_force,
|
|
16
17
|
kbar2evperang3,
|
|
17
18
|
)
|
|
18
19
|
|
|
@@ -198,6 +199,8 @@ def get_frame(fname):
|
|
|
198
199
|
lines, atomnumber
|
|
199
200
|
)
|
|
200
201
|
|
|
202
|
+
magmom, magforce = get_mag_force(lines)
|
|
203
|
+
|
|
201
204
|
data = {}
|
|
202
205
|
data["atom_names"] = atom_names
|
|
203
206
|
data["atom_numbs"] = natoms
|
|
@@ -211,4 +214,9 @@ def get_frame(fname):
|
|
|
211
214
|
data["stress"] = stress
|
|
212
215
|
data["orig"] = np.zeros(3)
|
|
213
216
|
|
|
217
|
+
if len(magmom) > 0:
|
|
218
|
+
data["spins"] = magmom
|
|
219
|
+
if len(magforce) > 0:
|
|
220
|
+
data["mag_forces"] = magforce
|
|
221
|
+
|
|
214
222
|
return data
|