pymdkit 1.7.4__tar.gz → 1.7.5__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.
- {pymdkit-1.7.4 → pymdkit-1.7.5}/CHANGELOG.md +10 -0
- {pymdkit-1.7.4/src/pymdkit.egg-info → pymdkit-1.7.5}/PKG-INFO +110 -11
- {pymdkit-1.7.4 → pymdkit-1.7.5}/README.md +108 -10
- {pymdkit-1.7.4 → pymdkit-1.7.5}/pyproject.toml +2 -1
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/__init__.py +1 -1
- pymdkit-1.7.5/src/pymdkit/commands/_ionhop.py +703 -0
- pymdkit-1.7.5/src/pymdkit/commands/_msd_reuse.py +249 -0
- pymdkit-1.7.5/src/pymdkit/commands/ionhop.py +54 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/msd.py +69 -11
- {pymdkit-1.7.4 → pymdkit-1.7.5/src/pymdkit.egg-info}/PKG-INFO +110 -11
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit.egg-info/SOURCES.txt +5 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit.egg-info/requires.txt +1 -0
- pymdkit-1.7.5/tests/test_ionhop.py +248 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_msd_phase3.py +2 -1
- pymdkit-1.7.5/tests/test_msd_reuse.py +256 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/LICENSE +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/MANIFEST.in +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/setup.cfg +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/_config.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/_logging.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/__init__.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_cifio.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_extxyz.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_fileio.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_geometry.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_gpumd.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_gpumd_final_structure.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_gpumd_msd.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_gpumd_run.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_gpumd_status.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_gpumd_thermo.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_lattice.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_msd_auto.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_msd_conductivity.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_msd_coordinates.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_msd_fit.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_msd_io.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_msd_provenance.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_msd_range.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_msd_thermo.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_msd_uncertainty.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_oxidation.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_parallel.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_precision.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_pred_msd_plan.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_pred_msd_reference.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_reduction.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_submit.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_submit_vasp.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_supercell.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_symmetry.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_vasp_ehull.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_vasp_final_structure.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_vasp_nep.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_vasp_output.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/_vaspset.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/chemsys_entry.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/compute_rmsd.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/config.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/convert.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/dope.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/ewald.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/gpumd_job.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/gpumd_out.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/nep_rmse.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/perturb.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/pred_msd_time.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/rd.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/realloc_occ.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/submit.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/supercell.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/trjconv.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/vasp_job.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/commands/vasp_out.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit/pymdkit_main.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit.egg-info/dependency_links.txt +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit.egg-info/entry_points.txt +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/src/pymdkit.egg-info/top_level.txt +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/data/88-Li2YCl3-63-d1.cif +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_config_logging.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_convert.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_ehull.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_gpumd_out.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_lattice_symmetry.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_msd_auto.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_msd_fit.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_msd_large.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_msd_range.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_msd_uncertainty.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_parallel.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_pred_msd_time.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_progress.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_realloc_occ.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_rmsd_gpu.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_rmsd_max.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_rmsd_two_folder.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_submit.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_v165.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_v170_job_infrastructure.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_v170_vasp_consolidation.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_v172_vasp_writing.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_vasp_out.py +0 -0
- {pymdkit-1.7.4 → pymdkit-1.7.5}/tests/test_vaspset.py +0 -0
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.7.5
|
|
4
|
+
|
|
5
|
+
- `pmk msd` reuses validated full-trajectory and range results with version-1
|
|
6
|
+
provenance, including compatible 1.7.4 results. Newly calculated and reused
|
|
7
|
+
results share the total-only batch summaries, with rollback if publication
|
|
8
|
+
fails.
|
|
9
|
+
- Add `pmk ionhop` for iodine-aligned Li site hopping in GPUMD trajectories,
|
|
10
|
+
with single and multi-temperature modes and nearest-neighbor hop frequencies.
|
|
11
|
+
SciPy is a direct dependency for the cKDTree CPU backend.
|
|
12
|
+
|
|
3
13
|
## 1.7.4
|
|
4
14
|
|
|
5
15
|
- `pmk msd -ne` retains finite, positive Einstein diffusion coefficients and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pymdkit
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.5
|
|
4
4
|
Summary: A Python command-line toolkit for high-throughput atomistic workflows in AI-driven materials design.
|
|
5
5
|
Author-email: Yueda Wang <ydwang0608@ustc.edu.cn>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
@@ -14,6 +14,7 @@ Requires-Python: >=3.9
|
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
16
|
Requires-Dist: numpy
|
|
17
|
+
Requires-Dist: scipy
|
|
17
18
|
Requires-Dist: ase
|
|
18
19
|
Requires-Dist: pymatgen
|
|
19
20
|
Requires-Dist: mp-api
|
|
@@ -36,6 +37,15 @@ materials design. Install `pymdkit` once and call its tools from anywhere as
|
|
|
36
37
|
Commands expose explicit, documented CLI interfaces designed for reproducible shell,
|
|
37
38
|
HPC, and AI-agent workflows, and each underlying script is still runnable on its own.
|
|
38
39
|
|
|
40
|
+
## 1.7.5 release notes
|
|
41
|
+
|
|
42
|
+
- `pmk msd` reuses compatible full-trajectory or segment results, including
|
|
43
|
+
validated 1.7.4 WARNING results. Reused and newly calculated results contribute
|
|
44
|
+
to the same batch summaries after every directory succeeds.
|
|
45
|
+
- `pmk ionhop` analyzes completed Li octahedral-to-octahedral hops in
|
|
46
|
+
iodine-aligned GPUMD trajectories. It supports single and multi-temperature
|
|
47
|
+
runs with SciPy cKDTree and batched NumPy CPU assignment.
|
|
48
|
+
|
|
39
49
|
## 1.7.4 release notes
|
|
40
50
|
|
|
41
51
|
- `pmk msd -ne` retains valid Einstein diffusion coefficients and conductivity
|
|
@@ -106,7 +116,7 @@ installed.
|
|
|
106
116
|
On a machine with Internet access, run:
|
|
107
117
|
|
|
108
118
|
```bash
|
|
109
|
-
python -m pip download pymdkit==1.7.
|
|
119
|
+
python -m pip download pymdkit==1.7.5 -d pymdkit-offline
|
|
110
120
|
```
|
|
111
121
|
|
|
112
122
|
This downloads `pymdkit` and the dependencies resolved by pip into the
|
|
@@ -114,14 +124,14 @@ This downloads `pymdkit` and the dependencies resolved by pip into the
|
|
|
114
124
|
system. Then, inside the target pymdkit Python or conda environment, run:
|
|
115
125
|
|
|
116
126
|
```bash
|
|
117
|
-
python -m pip install --no-index --find-links=pymdkit-offline pymdkit==1.7.
|
|
127
|
+
python -m pip install --no-index --find-links=pymdkit-offline pymdkit==1.7.5
|
|
118
128
|
```
|
|
119
129
|
|
|
120
130
|
For optional GPU use, prepare the bundle on a networked machine compatible with
|
|
121
131
|
the target HPC platform and Python environment:
|
|
122
132
|
|
|
123
133
|
```bash
|
|
124
|
-
python -m pip download "pymdkit[gpu-cuda12]==1.7.
|
|
134
|
+
python -m pip download "pymdkit[gpu-cuda12]==1.7.5" -d pymdkit-offline
|
|
125
135
|
```
|
|
126
136
|
|
|
127
137
|
Transfer the whole `pymdkit-offline` directory, then install from it on the
|
|
@@ -129,7 +139,7 @@ target system:
|
|
|
129
139
|
|
|
130
140
|
```bash
|
|
131
141
|
python -m pip install --no-index --find-links=pymdkit-offline \
|
|
132
|
-
"pymdkit[gpu-cuda12]==1.7.
|
|
142
|
+
"pymdkit[gpu-cuda12]==1.7.5"
|
|
133
143
|
```
|
|
134
144
|
|
|
135
145
|
This GPU bundle includes the optional `cupy-cuda12x` package. Its wheels must also
|
|
@@ -212,6 +222,7 @@ preserve occupancy, oxidation, symmetry, and Wyckoff metadata.
|
|
|
212
222
|
| `gpumd-job` | Create supercell, temperature, potential, input, and grouped GPUMD jobs |
|
|
213
223
|
| `pred-msd-time` | Predict Li conductivity, diffusion and NVT production durations from GPUMD MSD |
|
|
214
224
|
| `gpumd-out` | Export GPUMD thermo/MSD results or gather final structures |
|
|
225
|
+
| `ionhop` | Count completed Li site hops and report nearest-neighbor hop frequencies from GPUMD trajectories |
|
|
215
226
|
| `mp-chemsys` | Download stable Materials Project structures for a chemical system |
|
|
216
227
|
| `nep-rmse` | Compute NEP energy/force/stress RMSE and select candidates |
|
|
217
228
|
| `perturb` | Generate perturbed structures with dpdata |
|
|
@@ -904,8 +915,27 @@ settings, selection, and sensitivity. Beta-qualified window sensitivity,
|
|
|
904
915
|
all-valid-candidate sensitivity, and three-segment slope spread are reported
|
|
905
916
|
separately. Segments and MSD time origins are correlated. Window-to-window spread
|
|
906
917
|
measures sensitivity. Formal statistical uncertainty requires an explicit
|
|
907
|
-
request.
|
|
908
|
-
|
|
918
|
+
request. Temporary coordinate storage is removed when the calculation ends.
|
|
919
|
+
|
|
920
|
+
When the result directory is absent, `pmk msd` calculates it. When a compatible
|
|
921
|
+
result already exists, the command reuses its full-precision coefficients and
|
|
922
|
+
quality without reading trajectory coordinates or changing the saved result
|
|
923
|
+
files. It checks version-1 provenance, input and output sizes and modification
|
|
924
|
+
times, grouping method 0, atom counts, run cadence, fit settings, selected
|
|
925
|
+
window, and diagnostic and coefficient totals. With `-ne` it also checks the
|
|
926
|
+
charge and thermodynamic inputs and recomputes the stored conductivity from
|
|
927
|
+
full-precision D, temperature, volume, and ion count. Primary 1.7.4 results
|
|
928
|
+
can be reused when diagnostics establish compatibility, including the effective
|
|
929
|
+
lag bounds for a manual window. Missing provenance, stale files, incomplete
|
|
930
|
+
outputs, incompatible settings, and REJECT results cause an error and leave the
|
|
931
|
+
result directory intact. Move that directory aside before recalculating.
|
|
932
|
+
|
|
933
|
+
With `--uncertainty covariance`, reuse also requires the original uncertainty
|
|
934
|
+
settings, output fingerprints, and matching input hashes and paths. Older
|
|
935
|
+
results without those settings or fingerprints require recalculation for an
|
|
936
|
+
uncertainty request. The existing full-run NE covariance fallback can reuse
|
|
937
|
+
nominal temperature when `thermo.out` was unavailable. Ordinary NE and range
|
|
938
|
+
NE still require `thermo.out`.
|
|
909
939
|
|
|
910
940
|
The five-column raw MSD is published immediately after FFT succeeds, before
|
|
911
941
|
window search, optional uncertainty, or thermodynamic/NE processing. Later errors
|
|
@@ -972,15 +1002,18 @@ original inputs/results before and after, regenerates missing diagnostics,
|
|
|
972
1002
|
reads the original trajectory and removes temporary coordinates. Normal tests
|
|
973
1003
|
do not require this external dataset.
|
|
974
1004
|
|
|
975
|
-
After every
|
|
1005
|
+
After every directory is calculated or validated for reuse, root-level `self-diff-total.txt` and,
|
|
976
1006
|
with `-ne`, `sigma-total.txt` summarize directory, temperature (K), and the
|
|
977
1007
|
isotropic total D (cm²/s, `%.2e`) or conductivity (mS/cm, `%.2f`). Rows use
|
|
978
1008
|
relative paths and sort by numeric temperature, then path. Summaries use internal
|
|
979
1009
|
unrounded totals. NE uses measured mean production temperature; without NE a
|
|
980
1010
|
single stationary production NVT target is required (ramps, multiple targets and
|
|
981
|
-
missing NVT targets produce an explicit error).
|
|
982
|
-
nonzero and preserve previous summaries
|
|
983
|
-
A successful run without `-ne`
|
|
1011
|
+
missing NVT targets produce an explicit error). Calculation or validation
|
|
1012
|
+
failures return nonzero and preserve previous summaries. Unresolved templates
|
|
1013
|
+
are skipped. A successful run without `-ne` can reuse diffusion from a
|
|
1014
|
+
compatible previous NE result and removes any stale root `sigma-total.txt`.
|
|
1015
|
+
Range runs reuse only the matching segment result and publish totals under
|
|
1016
|
+
`root/msd/segments/START-ENDns/`, separately from full-trajectory root summaries.
|
|
984
1017
|
The companion `msd-quality-total.txt` retains each directory's PASS/WARNING
|
|
985
1018
|
status. In NE mode, a directory whose valid coefficients were retained despite
|
|
986
1019
|
fit-quality rejection appears as WARNING and contributes to both numeric
|
|
@@ -1006,6 +1039,72 @@ Nernst–Einstein conductivity uses self-diffusion and neglects distinct-ion cro
|
|
|
1006
1039
|
correlations. It is not generally equal to experimental conductivity. The existing
|
|
1007
1040
|
`gpumd-out -msd` workflow is unchanged.
|
|
1008
1041
|
|
|
1042
|
+
## Count Li site hops in GPUMD trajectories
|
|
1043
|
+
|
|
1044
|
+
```bash
|
|
1045
|
+
pmk ionhop -model model.xyz -trajectory dump.xyz -prefix Li4YI7_300K
|
|
1046
|
+
pmk ionhop -prefix LiYI7
|
|
1047
|
+
```
|
|
1048
|
+
|
|
1049
|
+
Supply both paths for single mode. It writes `<prefix>_sites.csv`,
|
|
1050
|
+
`<prefix>_jumps.csv`, and `<prefix>_summary.json`. The sites CSV lists the
|
|
1051
|
+
one-based site IDs, fractional coordinates, O/T type, and initial occupancy.
|
|
1052
|
+
The jumps CSV records the Li atom and site IDs, arrival and confirmation times
|
|
1053
|
+
in ps, displacement in Å, hop class, and sampled tetrahedral evidence.
|
|
1054
|
+
The JSON includes counts, site-link statistics, initial occupancy, iodine
|
|
1055
|
+
alignment, mean displacement, sampling and processing timings, and method
|
|
1056
|
+
limitations.
|
|
1057
|
+
|
|
1058
|
+
With both paths omitted, batch mode looks for immediate integer-temperature
|
|
1059
|
+
subdirectories with `model.xyz` and `dump.xyz`. It warns about incomplete
|
|
1060
|
+
directories, rejects duplicate integer temperatures, and processes complete
|
|
1061
|
+
directories in numeric order. Use a plain prefix such as `LiYI7` to write
|
|
1062
|
+
`LiYI7_300K_sites.csv`, `LiYI7_300K_jumps.csv`, and
|
|
1063
|
+
`LiYI7_300K_summary.json` inside `300/`. After every trajectory succeeds it
|
|
1064
|
+
atomically publishes root `hop_freq.txt`, with header `Temp(K) Hop_freq(s-1)`
|
|
1065
|
+
and one temperature and frequency per row. Existing batch outputs require
|
|
1066
|
+
`-overwrite`. A failed batch can leave per-temperature files already written.
|
|
1067
|
+
|
|
1068
|
+
| Option | Default | Meaning |
|
|
1069
|
+
|---|---|---|
|
|
1070
|
+
| `-model` | Omitted | Model XYZ path, paired with `-trajectory` |
|
|
1071
|
+
| `-trajectory` | Omitted | GPUMD dump XYZ path, paired with `-model` |
|
|
1072
|
+
| `-prefix` | Required | Output prefix in single mode, plain material label in batch mode |
|
|
1073
|
+
| `-radius` | 1.25 Å | Site-core radius, positive and below half the O–T spacing |
|
|
1074
|
+
| `-min-frames` | 2 | Consecutive destination frames needed to confirm a hop, at least one |
|
|
1075
|
+
| `-max-frames` | Omitted | Limit the number of frames read, at least two when supplied |
|
|
1076
|
+
| `-backend` | `cpu` | SciPy cKDTree or `numpy` for batched analytic CPU assignment |
|
|
1077
|
+
| `-batch-frames` | 256 | Positive batch size for the NumPy backend |
|
|
1078
|
+
| `-no-iodine-align` | Off | Disable iodine-frame alignment for legacy comparisons |
|
|
1079
|
+
| `-overwrite` | Off | Allow replacing existing batch outputs |
|
|
1080
|
+
|
|
1081
|
+
Each option also accepts its double-dash spelling. Both backends use the CPU.
|
|
1082
|
+
The model must contain Li, I, and either Y or La, with an fcc iodine sublattice.
|
|
1083
|
+
The trajectory must preserve atom order and have evenly spaced, increasing
|
|
1084
|
+
`Time=` values in fs. Axis-aligned cubic cells may vary in volume.
|
|
1085
|
+
|
|
1086
|
+
Octahedral O sites are the ideal fcc cation positions. Tetrahedral T sites are
|
|
1087
|
+
the ideal interstices. Periodic nearest-site assignment uses the site cores.
|
|
1088
|
+
Iodine atoms are matched to ideal references in the model and tracked by atom
|
|
1089
|
+
identity. Each frame removes the median three-dimensional minimum-image iodine
|
|
1090
|
+
displacement from the Li coordinates. Reported site fractions are in that
|
|
1091
|
+
aligned frame.
|
|
1092
|
+
|
|
1093
|
+
A completed hop starts at a persistent O site and ends at another O site
|
|
1094
|
+
after the configured consecutive destination frames. T visits contribute only
|
|
1095
|
+
pathway evidence. The reported frequency is the number of confirmed
|
|
1096
|
+
nearest-neighbor O-to-O hops divided by the number of Li ions and the elapsed
|
|
1097
|
+
seconds from the first to the last saved frame. The unit is s⁻¹. Long or
|
|
1098
|
+
unresolved multihops are counted separately. A trajectory can miss brief T
|
|
1099
|
+
visits and recrossings between frames, so an O-to-O hop with no sampled T visit
|
|
1100
|
+
leaves its pathway unresolved.
|
|
1101
|
+
|
|
1102
|
+
The site-core and residence-time approach follows de Klerk et al.,
|
|
1103
|
+
*ACS Applied Energy Materials* **1**, 3230–3242 (2018), and Lavrinenko et al.
|
|
1104
|
+
(GEMDAT), *npj Computational Materials* **12**, 259 (2026).
|
|
1105
|
+
[DOI 10.1021/acsaem.8b00457](https://doi.org/10.1021/acsaem.8b00457)
|
|
1106
|
+
and [DOI 10.1038/s41524-026-02133-7](https://doi.org/10.1038/s41524-026-02133-7).
|
|
1107
|
+
|
|
1009
1108
|
## Plan GPUMD NVT production from Li MSD
|
|
1010
1109
|
|
|
1011
1110
|
Run the predictor from a project directory containing completed GPUMD tasks.
|
|
@@ -7,6 +7,15 @@ materials design. Install `pymdkit` once and call its tools from anywhere as
|
|
|
7
7
|
Commands expose explicit, documented CLI interfaces designed for reproducible shell,
|
|
8
8
|
HPC, and AI-agent workflows, and each underlying script is still runnable on its own.
|
|
9
9
|
|
|
10
|
+
## 1.7.5 release notes
|
|
11
|
+
|
|
12
|
+
- `pmk msd` reuses compatible full-trajectory or segment results, including
|
|
13
|
+
validated 1.7.4 WARNING results. Reused and newly calculated results contribute
|
|
14
|
+
to the same batch summaries after every directory succeeds.
|
|
15
|
+
- `pmk ionhop` analyzes completed Li octahedral-to-octahedral hops in
|
|
16
|
+
iodine-aligned GPUMD trajectories. It supports single and multi-temperature
|
|
17
|
+
runs with SciPy cKDTree and batched NumPy CPU assignment.
|
|
18
|
+
|
|
10
19
|
## 1.7.4 release notes
|
|
11
20
|
|
|
12
21
|
- `pmk msd -ne` retains valid Einstein diffusion coefficients and conductivity
|
|
@@ -77,7 +86,7 @@ installed.
|
|
|
77
86
|
On a machine with Internet access, run:
|
|
78
87
|
|
|
79
88
|
```bash
|
|
80
|
-
python -m pip download pymdkit==1.7.
|
|
89
|
+
python -m pip download pymdkit==1.7.5 -d pymdkit-offline
|
|
81
90
|
```
|
|
82
91
|
|
|
83
92
|
This downloads `pymdkit` and the dependencies resolved by pip into the
|
|
@@ -85,14 +94,14 @@ This downloads `pymdkit` and the dependencies resolved by pip into the
|
|
|
85
94
|
system. Then, inside the target pymdkit Python or conda environment, run:
|
|
86
95
|
|
|
87
96
|
```bash
|
|
88
|
-
python -m pip install --no-index --find-links=pymdkit-offline pymdkit==1.7.
|
|
97
|
+
python -m pip install --no-index --find-links=pymdkit-offline pymdkit==1.7.5
|
|
89
98
|
```
|
|
90
99
|
|
|
91
100
|
For optional GPU use, prepare the bundle on a networked machine compatible with
|
|
92
101
|
the target HPC platform and Python environment:
|
|
93
102
|
|
|
94
103
|
```bash
|
|
95
|
-
python -m pip download "pymdkit[gpu-cuda12]==1.7.
|
|
104
|
+
python -m pip download "pymdkit[gpu-cuda12]==1.7.5" -d pymdkit-offline
|
|
96
105
|
```
|
|
97
106
|
|
|
98
107
|
Transfer the whole `pymdkit-offline` directory, then install from it on the
|
|
@@ -100,7 +109,7 @@ target system:
|
|
|
100
109
|
|
|
101
110
|
```bash
|
|
102
111
|
python -m pip install --no-index --find-links=pymdkit-offline \
|
|
103
|
-
"pymdkit[gpu-cuda12]==1.7.
|
|
112
|
+
"pymdkit[gpu-cuda12]==1.7.5"
|
|
104
113
|
```
|
|
105
114
|
|
|
106
115
|
This GPU bundle includes the optional `cupy-cuda12x` package. Its wheels must also
|
|
@@ -183,6 +192,7 @@ preserve occupancy, oxidation, symmetry, and Wyckoff metadata.
|
|
|
183
192
|
| `gpumd-job` | Create supercell, temperature, potential, input, and grouped GPUMD jobs |
|
|
184
193
|
| `pred-msd-time` | Predict Li conductivity, diffusion and NVT production durations from GPUMD MSD |
|
|
185
194
|
| `gpumd-out` | Export GPUMD thermo/MSD results or gather final structures |
|
|
195
|
+
| `ionhop` | Count completed Li site hops and report nearest-neighbor hop frequencies from GPUMD trajectories |
|
|
186
196
|
| `mp-chemsys` | Download stable Materials Project structures for a chemical system |
|
|
187
197
|
| `nep-rmse` | Compute NEP energy/force/stress RMSE and select candidates |
|
|
188
198
|
| `perturb` | Generate perturbed structures with dpdata |
|
|
@@ -875,8 +885,27 @@ settings, selection, and sensitivity. Beta-qualified window sensitivity,
|
|
|
875
885
|
all-valid-candidate sensitivity, and three-segment slope spread are reported
|
|
876
886
|
separately. Segments and MSD time origins are correlated. Window-to-window spread
|
|
877
887
|
measures sensitivity. Formal statistical uncertainty requires an explicit
|
|
878
|
-
request.
|
|
879
|
-
|
|
888
|
+
request. Temporary coordinate storage is removed when the calculation ends.
|
|
889
|
+
|
|
890
|
+
When the result directory is absent, `pmk msd` calculates it. When a compatible
|
|
891
|
+
result already exists, the command reuses its full-precision coefficients and
|
|
892
|
+
quality without reading trajectory coordinates or changing the saved result
|
|
893
|
+
files. It checks version-1 provenance, input and output sizes and modification
|
|
894
|
+
times, grouping method 0, atom counts, run cadence, fit settings, selected
|
|
895
|
+
window, and diagnostic and coefficient totals. With `-ne` it also checks the
|
|
896
|
+
charge and thermodynamic inputs and recomputes the stored conductivity from
|
|
897
|
+
full-precision D, temperature, volume, and ion count. Primary 1.7.4 results
|
|
898
|
+
can be reused when diagnostics establish compatibility, including the effective
|
|
899
|
+
lag bounds for a manual window. Missing provenance, stale files, incomplete
|
|
900
|
+
outputs, incompatible settings, and REJECT results cause an error and leave the
|
|
901
|
+
result directory intact. Move that directory aside before recalculating.
|
|
902
|
+
|
|
903
|
+
With `--uncertainty covariance`, reuse also requires the original uncertainty
|
|
904
|
+
settings, output fingerprints, and matching input hashes and paths. Older
|
|
905
|
+
results without those settings or fingerprints require recalculation for an
|
|
906
|
+
uncertainty request. The existing full-run NE covariance fallback can reuse
|
|
907
|
+
nominal temperature when `thermo.out` was unavailable. Ordinary NE and range
|
|
908
|
+
NE still require `thermo.out`.
|
|
880
909
|
|
|
881
910
|
The five-column raw MSD is published immediately after FFT succeeds, before
|
|
882
911
|
window search, optional uncertainty, or thermodynamic/NE processing. Later errors
|
|
@@ -943,15 +972,18 @@ original inputs/results before and after, regenerates missing diagnostics,
|
|
|
943
972
|
reads the original trajectory and removes temporary coordinates. Normal tests
|
|
944
973
|
do not require this external dataset.
|
|
945
974
|
|
|
946
|
-
After every
|
|
975
|
+
After every directory is calculated or validated for reuse, root-level `self-diff-total.txt` and,
|
|
947
976
|
with `-ne`, `sigma-total.txt` summarize directory, temperature (K), and the
|
|
948
977
|
isotropic total D (cm²/s, `%.2e`) or conductivity (mS/cm, `%.2f`). Rows use
|
|
949
978
|
relative paths and sort by numeric temperature, then path. Summaries use internal
|
|
950
979
|
unrounded totals. NE uses measured mean production temperature; without NE a
|
|
951
980
|
single stationary production NVT target is required (ramps, multiple targets and
|
|
952
|
-
missing NVT targets produce an explicit error).
|
|
953
|
-
nonzero and preserve previous summaries
|
|
954
|
-
A successful run without `-ne`
|
|
981
|
+
missing NVT targets produce an explicit error). Calculation or validation
|
|
982
|
+
failures return nonzero and preserve previous summaries. Unresolved templates
|
|
983
|
+
are skipped. A successful run without `-ne` can reuse diffusion from a
|
|
984
|
+
compatible previous NE result and removes any stale root `sigma-total.txt`.
|
|
985
|
+
Range runs reuse only the matching segment result and publish totals under
|
|
986
|
+
`root/msd/segments/START-ENDns/`, separately from full-trajectory root summaries.
|
|
955
987
|
The companion `msd-quality-total.txt` retains each directory's PASS/WARNING
|
|
956
988
|
status. In NE mode, a directory whose valid coefficients were retained despite
|
|
957
989
|
fit-quality rejection appears as WARNING and contributes to both numeric
|
|
@@ -977,6 +1009,72 @@ Nernst–Einstein conductivity uses self-diffusion and neglects distinct-ion cro
|
|
|
977
1009
|
correlations. It is not generally equal to experimental conductivity. The existing
|
|
978
1010
|
`gpumd-out -msd` workflow is unchanged.
|
|
979
1011
|
|
|
1012
|
+
## Count Li site hops in GPUMD trajectories
|
|
1013
|
+
|
|
1014
|
+
```bash
|
|
1015
|
+
pmk ionhop -model model.xyz -trajectory dump.xyz -prefix Li4YI7_300K
|
|
1016
|
+
pmk ionhop -prefix LiYI7
|
|
1017
|
+
```
|
|
1018
|
+
|
|
1019
|
+
Supply both paths for single mode. It writes `<prefix>_sites.csv`,
|
|
1020
|
+
`<prefix>_jumps.csv`, and `<prefix>_summary.json`. The sites CSV lists the
|
|
1021
|
+
one-based site IDs, fractional coordinates, O/T type, and initial occupancy.
|
|
1022
|
+
The jumps CSV records the Li atom and site IDs, arrival and confirmation times
|
|
1023
|
+
in ps, displacement in Å, hop class, and sampled tetrahedral evidence.
|
|
1024
|
+
The JSON includes counts, site-link statistics, initial occupancy, iodine
|
|
1025
|
+
alignment, mean displacement, sampling and processing timings, and method
|
|
1026
|
+
limitations.
|
|
1027
|
+
|
|
1028
|
+
With both paths omitted, batch mode looks for immediate integer-temperature
|
|
1029
|
+
subdirectories with `model.xyz` and `dump.xyz`. It warns about incomplete
|
|
1030
|
+
directories, rejects duplicate integer temperatures, and processes complete
|
|
1031
|
+
directories in numeric order. Use a plain prefix such as `LiYI7` to write
|
|
1032
|
+
`LiYI7_300K_sites.csv`, `LiYI7_300K_jumps.csv`, and
|
|
1033
|
+
`LiYI7_300K_summary.json` inside `300/`. After every trajectory succeeds it
|
|
1034
|
+
atomically publishes root `hop_freq.txt`, with header `Temp(K) Hop_freq(s-1)`
|
|
1035
|
+
and one temperature and frequency per row. Existing batch outputs require
|
|
1036
|
+
`-overwrite`. A failed batch can leave per-temperature files already written.
|
|
1037
|
+
|
|
1038
|
+
| Option | Default | Meaning |
|
|
1039
|
+
|---|---|---|
|
|
1040
|
+
| `-model` | Omitted | Model XYZ path, paired with `-trajectory` |
|
|
1041
|
+
| `-trajectory` | Omitted | GPUMD dump XYZ path, paired with `-model` |
|
|
1042
|
+
| `-prefix` | Required | Output prefix in single mode, plain material label in batch mode |
|
|
1043
|
+
| `-radius` | 1.25 Å | Site-core radius, positive and below half the O–T spacing |
|
|
1044
|
+
| `-min-frames` | 2 | Consecutive destination frames needed to confirm a hop, at least one |
|
|
1045
|
+
| `-max-frames` | Omitted | Limit the number of frames read, at least two when supplied |
|
|
1046
|
+
| `-backend` | `cpu` | SciPy cKDTree or `numpy` for batched analytic CPU assignment |
|
|
1047
|
+
| `-batch-frames` | 256 | Positive batch size for the NumPy backend |
|
|
1048
|
+
| `-no-iodine-align` | Off | Disable iodine-frame alignment for legacy comparisons |
|
|
1049
|
+
| `-overwrite` | Off | Allow replacing existing batch outputs |
|
|
1050
|
+
|
|
1051
|
+
Each option also accepts its double-dash spelling. Both backends use the CPU.
|
|
1052
|
+
The model must contain Li, I, and either Y or La, with an fcc iodine sublattice.
|
|
1053
|
+
The trajectory must preserve atom order and have evenly spaced, increasing
|
|
1054
|
+
`Time=` values in fs. Axis-aligned cubic cells may vary in volume.
|
|
1055
|
+
|
|
1056
|
+
Octahedral O sites are the ideal fcc cation positions. Tetrahedral T sites are
|
|
1057
|
+
the ideal interstices. Periodic nearest-site assignment uses the site cores.
|
|
1058
|
+
Iodine atoms are matched to ideal references in the model and tracked by atom
|
|
1059
|
+
identity. Each frame removes the median three-dimensional minimum-image iodine
|
|
1060
|
+
displacement from the Li coordinates. Reported site fractions are in that
|
|
1061
|
+
aligned frame.
|
|
1062
|
+
|
|
1063
|
+
A completed hop starts at a persistent O site and ends at another O site
|
|
1064
|
+
after the configured consecutive destination frames. T visits contribute only
|
|
1065
|
+
pathway evidence. The reported frequency is the number of confirmed
|
|
1066
|
+
nearest-neighbor O-to-O hops divided by the number of Li ions and the elapsed
|
|
1067
|
+
seconds from the first to the last saved frame. The unit is s⁻¹. Long or
|
|
1068
|
+
unresolved multihops are counted separately. A trajectory can miss brief T
|
|
1069
|
+
visits and recrossings between frames, so an O-to-O hop with no sampled T visit
|
|
1070
|
+
leaves its pathway unresolved.
|
|
1071
|
+
|
|
1072
|
+
The site-core and residence-time approach follows de Klerk et al.,
|
|
1073
|
+
*ACS Applied Energy Materials* **1**, 3230–3242 (2018), and Lavrinenko et al.
|
|
1074
|
+
(GEMDAT), *npj Computational Materials* **12**, 259 (2026).
|
|
1075
|
+
[DOI 10.1021/acsaem.8b00457](https://doi.org/10.1021/acsaem.8b00457)
|
|
1076
|
+
and [DOI 10.1038/s41524-026-02133-7](https://doi.org/10.1038/s41524-026-02133-7).
|
|
1077
|
+
|
|
980
1078
|
## Plan GPUMD NVT production from Li MSD
|
|
981
1079
|
|
|
982
1080
|
Run the predictor from a project directory containing completed GPUMD tasks.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pymdkit"
|
|
7
|
-
version = "1.7.
|
|
7
|
+
version = "1.7.5"
|
|
8
8
|
description = "A Python command-line toolkit for high-throughput atomistic workflows in AI-driven materials design."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -25,6 +25,7 @@ classifiers = [
|
|
|
25
25
|
# individual commands, so the dispatcher and pmk -help stay fast.
|
|
26
26
|
dependencies = [
|
|
27
27
|
"numpy",
|
|
28
|
+
"scipy",
|
|
28
29
|
"ase",
|
|
29
30
|
"pymatgen",
|
|
30
31
|
"mp-api",
|