pymdkit 1.7.5__tar.gz → 1.7.7__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.5 → pymdkit-1.7.7}/CHANGELOG.md +41 -35
- {pymdkit-1.7.5/src/pymdkit.egg-info → pymdkit-1.7.7}/PKG-INFO +166 -11
- {pymdkit-1.7.5 → pymdkit-1.7.7}/README.md +165 -10
- {pymdkit-1.7.5 → pymdkit-1.7.7}/pyproject.toml +1 -1
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/__init__.py +1 -1
- pymdkit-1.7.7/src/pymdkit/commands/_dope_certify.py +145 -0
- pymdkit-1.7.7/src/pymdkit/commands/_dope_optimize.py +322 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_gpumd_msd.py +11 -11
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_msd_conductivity.py +19 -19
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/convert.py +3 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/dope.py +189 -66
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/gpumd_job.py +117 -106
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/supercell.py +34 -12
- {pymdkit-1.7.5 → pymdkit-1.7.7/src/pymdkit.egg-info}/PKG-INFO +166 -11
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit.egg-info/SOURCES.txt +6 -0
- pymdkit-1.7.7/tests/test_dope_certify.py +155 -0
- pymdkit-1.7.7/tests/test_dope_optimize.py +207 -0
- pymdkit-1.7.7/tests/test_dope_performance.py +201 -0
- pymdkit-1.7.7/tests/test_gpumd_job_fixes.py +176 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/LICENSE +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/MANIFEST.in +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/setup.cfg +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/_config.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/_logging.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/__init__.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_cifio.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_extxyz.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_fileio.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_geometry.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_gpumd.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_gpumd_final_structure.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_gpumd_run.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_gpumd_status.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_gpumd_thermo.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_ionhop.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_lattice.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_msd_auto.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_msd_coordinates.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_msd_fit.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_msd_io.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_msd_provenance.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_msd_range.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_msd_reuse.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_msd_thermo.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_msd_uncertainty.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_oxidation.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_parallel.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_precision.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_pred_msd_plan.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_pred_msd_reference.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_reduction.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_submit.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_submit_vasp.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_supercell.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_symmetry.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_vasp_ehull.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_vasp_final_structure.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_vasp_nep.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_vasp_output.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/_vaspset.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/chemsys_entry.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/compute_rmsd.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/config.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/ewald.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/gpumd_out.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/ionhop.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/msd.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/nep_rmse.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/perturb.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/pred_msd_time.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/rd.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/realloc_occ.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/submit.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/trjconv.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/vasp_job.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/commands/vasp_out.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit/pymdkit_main.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit.egg-info/dependency_links.txt +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit.egg-info/entry_points.txt +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit.egg-info/requires.txt +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/src/pymdkit.egg-info/top_level.txt +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/data/88-Li2YCl3-63-d1.cif +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_config_logging.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_convert.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_ehull.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_gpumd_out.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_ionhop.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_lattice_symmetry.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_msd_auto.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_msd_fit.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_msd_large.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_msd_phase3.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_msd_range.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_msd_reuse.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_msd_uncertainty.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_parallel.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_pred_msd_time.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_progress.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_realloc_occ.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_rmsd_gpu.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_rmsd_max.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_rmsd_two_folder.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_submit.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_v165.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_v170_job_infrastructure.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_v170_vasp_consolidation.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_v172_vasp_writing.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_vasp_out.py +0 -0
- {pymdkit-1.7.5 → pymdkit-1.7.7}/tests/test_vaspset.py +0 -0
|
@@ -1,35 +1,41 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 1.7.
|
|
4
|
-
|
|
5
|
-
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
- `pmk
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.7.7
|
|
4
|
+
|
|
5
|
+
- Speed up automatic dope exchange scoring using exact incremental distances and bounded two-dimensional work arrays.
|
|
6
|
+
- Add deterministic shared-memory restart multiprocessing through `--n-jobs` (default 1), preserving search budgets and optional MILP certification.
|
|
7
|
+
- Restart seed streams change from 1.7.6; worker counts produce equivalent selections.
|
|
8
|
+
|
|
9
|
+
## 1.7.5
|
|
10
|
+
|
|
11
|
+
- `pmk msd` reuses validated full-trajectory and range results with version-1
|
|
12
|
+
provenance, including compatible 1.7.4 results. Newly calculated and reused
|
|
13
|
+
results share the total-only batch summaries, with rollback if publication
|
|
14
|
+
fails.
|
|
15
|
+
- Add `pmk ionhop` for iodine-aligned Li site hopping in GPUMD trajectories,
|
|
16
|
+
with single and multi-temperature modes and nearest-neighbor hop frequencies.
|
|
17
|
+
SciPy is a direct dependency for the cKDTree CPU backend.
|
|
18
|
+
|
|
19
|
+
## 1.7.4
|
|
20
|
+
|
|
21
|
+
- `pmk msd -ne` retains finite, positive Einstein diffusion coefficients and
|
|
22
|
+
Nernst–Einstein conductivity when the fit-quality diagnostics would reject the
|
|
23
|
+
window. The result is reported and aggregated as WARNING, with the original
|
|
24
|
+
diagnostic details preserved. This applies to automatic and manual windows.
|
|
25
|
+
- Missing valid regression, failed requested estimators, and invalid NE inputs
|
|
26
|
+
still fail the calculation and preserve existing aggregate summaries.
|
|
27
|
+
|
|
28
|
+
## 1.7.3
|
|
29
|
+
|
|
30
|
+
- `pmk msd` analyzes fixed-cell GPUMD NVT trajectories, selects or accepts a
|
|
31
|
+
fitting window, and optionally reports Nernst–Einstein conductivity. It uses
|
|
32
|
+
free-intercept OLS by default. Optional WLS and GLS also estimate the intercept.
|
|
33
|
+
Forced-origin fitting has been removed from production.
|
|
34
|
+
- `pmk pred-msd-time` uses validated full-trajectory OLS references to forecast
|
|
35
|
+
higher-temperature Li conductivity, diffusion, and NVT production duration.
|
|
36
|
+
The Arrhenius forecast and square-root duration scaling are planning heuristics.
|
|
37
|
+
The durations carry no guarantee of MSD convergence.
|
|
38
|
+
- `pmk gpumd-job -msd-time` generates GPUMD 4.2-compatible jobs with explicit
|
|
39
|
+
NVT temperatures, run lengths, and optional `compute_msd` sample counts.
|
|
40
|
+
Fixed-cell NVT production is required for MSD analysis. Earlier NPT equilibration
|
|
41
|
+
is supported when its frames are excluded from the analyzed trajectory.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pymdkit
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.7
|
|
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
|
|
@@ -37,6 +37,39 @@ materials design. Install `pymdkit` once and call its tools from anywhere as
|
|
|
37
37
|
Commands expose explicit, documented CLI interfaces designed for reproducible shell,
|
|
38
38
|
HPC, and AI-agent workflows, and each underlying script is still runnable on its own.
|
|
39
39
|
|
|
40
|
+
## 1.7.7 release notes
|
|
41
|
+
|
|
42
|
+
- Automatic `pmk dope` uses exact incremental exchange scores and bounded 2D
|
|
43
|
+
work arrays, preserving the three ranking metrics and search budgets.
|
|
44
|
+
- `--n-jobs N` runs independent restarts in N processes (default: 1).
|
|
45
|
+
Choose N for your CPU allocation; large problems benefit most and speedup
|
|
46
|
+
need not be proportional. This does not set MILP solver threads.
|
|
47
|
+
- Restart seeds now use `SeedSequence.spawn`: results are reproducible across
|
|
48
|
+
worker counts, but a seed need not reproduce the 1.7.6 configurations.
|
|
49
|
+
- Exact enumeration stays serial. Summary metadata reports actual workers,
|
|
50
|
+
timings (worker times are summed), sweeps, and attempted/accepted exchanges.
|
|
51
|
+
|
|
52
|
+
```powershell
|
|
53
|
+
pmk dope -i LiI-777.vasp -se Li -sn 392 -we vac -on 10 -o vacancies -ref vac vac -seed 42 --n-jobs 1
|
|
54
|
+
pmk dope -i LiI-777.vasp -se Li -sn 392 -we vac -on 10 -o vacancies-n4 -ref vac vac -seed 42 --n-jobs 4
|
|
55
|
+
pmk dope -i LiI-777.vasp -se Li -sn 392 -we vac -on 10 -o vacancies-n8 -ref vac vac -seed 42 --n-jobs 8
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Values above 1 require automatic optimization; ordinary generation and legacy
|
|
59
|
+
removal reject them. One process creates no workers. The float64 distance matrix
|
|
60
|
+
is shared read-only; workers return candidates and the parent writes and validates
|
|
61
|
+
outputs. Optional threadpoolctl limits numerical threads within each worker.
|
|
62
|
+
`--certify-optimum` and `--certify-time-limit` retain their existing meaning.
|
|
63
|
+
|
|
64
|
+
## 1.7.6 release notes
|
|
65
|
+
|
|
66
|
+
- `pmk dope -ref ELEMENT ELEMENT` now optimizes minimum periodic separation
|
|
67
|
+
when used with `-sn` and `-on`; `-we vac -ref vac vac` optimizes vacancy sites.
|
|
68
|
+
- `-d` is removed. Legacy reference removal uses `--reference-cutoffs`.
|
|
69
|
+
- Optimized structures are validated after writing and accompanied by a ranked
|
|
70
|
+
`optimization-summary.txt`. Scientific data reuse replaces the radius table,
|
|
71
|
+
symmetry-expression evaluation and duplicated exact SI constants.
|
|
72
|
+
|
|
40
73
|
## 1.7.5 release notes
|
|
41
74
|
|
|
42
75
|
- `pmk msd` reuses compatible full-trajectory or segment results, including
|
|
@@ -116,7 +149,7 @@ installed.
|
|
|
116
149
|
On a machine with Internet access, run:
|
|
117
150
|
|
|
118
151
|
```bash
|
|
119
|
-
python -m pip download pymdkit==1.7.
|
|
152
|
+
python -m pip download pymdkit==1.7.7 -d pymdkit-offline
|
|
120
153
|
```
|
|
121
154
|
|
|
122
155
|
This downloads `pymdkit` and the dependencies resolved by pip into the
|
|
@@ -124,14 +157,14 @@ This downloads `pymdkit` and the dependencies resolved by pip into the
|
|
|
124
157
|
system. Then, inside the target pymdkit Python or conda environment, run:
|
|
125
158
|
|
|
126
159
|
```bash
|
|
127
|
-
python -m pip install --no-index --find-links=pymdkit-offline pymdkit==1.7.
|
|
160
|
+
python -m pip install --no-index --find-links=pymdkit-offline pymdkit==1.7.7
|
|
128
161
|
```
|
|
129
162
|
|
|
130
163
|
For optional GPU use, prepare the bundle on a networked machine compatible with
|
|
131
164
|
the target HPC platform and Python environment:
|
|
132
165
|
|
|
133
166
|
```bash
|
|
134
|
-
python -m pip download "pymdkit[gpu-cuda12]==1.7.
|
|
167
|
+
python -m pip download "pymdkit[gpu-cuda12]==1.7.7" -d pymdkit-offline
|
|
135
168
|
```
|
|
136
169
|
|
|
137
170
|
Transfer the whole `pymdkit-offline` directory, then install from it on the
|
|
@@ -139,7 +172,7 @@ target system:
|
|
|
139
172
|
|
|
140
173
|
```bash
|
|
141
174
|
python -m pip install --no-index --find-links=pymdkit-offline \
|
|
142
|
-
"pymdkit[gpu-cuda12]==1.7.
|
|
175
|
+
"pymdkit[gpu-cuda12]==1.7.7"
|
|
143
176
|
```
|
|
144
177
|
|
|
145
178
|
This GPU bundle includes the optional `cupy-cuda12x` package. Its wheels must also
|
|
@@ -249,8 +282,8 @@ pmk supercell -i model.vasp -o model-sc.vasp -matrix 1x1x2
|
|
|
249
282
|
pmk supercell -if structures -of capped -max-abc 40
|
|
250
283
|
pmk supercell -if structures -of close -close-abc 50
|
|
251
284
|
|
|
252
|
-
pmk gpumd-job -if Li3YCl6-all -supercell-close-abc 50 -nep nep.txt -in run.in -temp 300 320 340 360 -group Li Y Cl
|
|
253
|
-
pmk gpumd-job -it train.xyz -supercell-matrix 2x2x2 -nep nep.txt -group Li Y Cl
|
|
285
|
+
pmk gpumd-job -if Li3YCl6-all -supercell-close-abc 50 -nep nep.txt -in run.in -temp 300 320 340 360 -group Li Y Cl -pos-only no
|
|
286
|
+
pmk gpumd-job -it train.xyz -supercell-matrix 2x2x2 -nep nep.txt -group Li Y Cl -pos-only no
|
|
254
287
|
pmk submit -gpumd
|
|
255
288
|
pmk submit -gpumd -subscript custom_gpumd.pbs -queue pbs -max-job-num 30
|
|
256
289
|
|
|
@@ -411,9 +444,32 @@ once globally and the selection is then partitioned by Config_type.
|
|
|
411
444
|
and `-in` default to `nep.txt` and `run.in` in the invocation directory. Each
|
|
412
445
|
job receives `model.xyz` as extxyz, the potential as `nep.txt`, and the input as
|
|
413
446
|
`run.in`; the `potential` line is synchronized to `nep.txt`. With `-temp`, PMK
|
|
414
|
-
creates `<structure>/<T
|
|
415
|
-
`-
|
|
416
|
-
|
|
447
|
+
creates `<structure>/<T>/` and replaces every `target_t` token with T.
|
|
448
|
+
`-pos-only yes` is the default: each model has exactly
|
|
449
|
+
`Properties=species:S:1:pos:R:3` and four fields per atom (species, x, y, z).
|
|
450
|
+
Cell, PBC, coordinates and atom order are retained; momenta, forces, group labels
|
|
451
|
+
and all other per-atom properties are omitted. Use `-pos-only no` to retain the
|
|
452
|
+
previous full-property writer, including labels assigned with `-group`.
|
|
453
|
+
|
|
454
|
+
```bash
|
|
455
|
+
pmk gpumd-job -if opted-vasp -nep nep.txt -in run.in -temp 300 400 500 600
|
|
456
|
+
pmk gpumd-job -if opted-vasp -nep nep.txt -in run.in -temp 300 400 500 600 -pos-only no
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
Explicit `npt_scr` pressure tokens, including zero and scientific notation, are
|
|
460
|
+
preserved. Cubic cells retain scalar pressure syntax and its elastic modulus and
|
|
461
|
+
coupling parameters. Non-cubic orthorhombic cells expand scalar pressure and modulus
|
|
462
|
+
into three matching components. Non-orthogonal cells use six components: scalar
|
|
463
|
+
pressure expands to three normal pressures and zero shear pressures, with the
|
|
464
|
+
specified modulus repeated. Existing complete directional controls are preserved;
|
|
465
|
+
when expanding three components to six, missing shear pressures are zero and
|
|
466
|
+
missing shear moduli use the established value 100. Cubic geometry requires angles
|
|
467
|
+
within 1e-4 degrees of 90 and a maximum length difference no greater than
|
|
468
|
+
`1e-6 A + 1e-5 * max(a,b,c)`. This is a cell-metric check, not a space-group analysis.
|
|
469
|
+
Only wholly absent pressure controls use the established defaults (`1e-04`, modulus
|
|
470
|
+
100, coupling 1000); incomplete control lists report an error. Template files,
|
|
471
|
+
comments, and unrelated commands remain intact apart from the existing temperature
|
|
472
|
+
and potential-filename substitutions. In `-if` mode, an existing final job
|
|
417
473
|
folder (including an empty one) is left untouched while missing siblings are
|
|
418
474
|
still generated. With `-temp`, every structure/temperature folder is checked
|
|
419
475
|
independently.
|
|
@@ -573,7 +629,7 @@ the strict `-max-ehull` filter using `ehull.txt` by default. All modes use
|
|
|
573
629
|
### Doping structures
|
|
574
630
|
|
|
575
631
|
```text
|
|
576
|
-
pmk dope -i FILE -se SELECTOR... [-sn NUMBER...] -we ELEMENT|
|
|
632
|
+
pmk dope -i FILE -se SELECTOR... [-sn NUMBER...] -we ELEMENT|vac... [-wn NUMBER...] [-on NUMBER] [-ref SELECTOR...] [--reference-cutoffs DISTANCE...] [-o DIR | -output-folder DIR] [-output-format FORMAT] [-seed INTEGER]
|
|
577
633
|
```
|
|
578
634
|
|
|
579
635
|
`dope` replaces `substitute` and preserves its validation,
|
|
@@ -582,6 +638,105 @@ Random mode defaults to `<input-stem>_dope/`; reference-distance mode defaults
|
|
|
582
638
|
to `<input-stem>_dope.cif`. Execution details are written to `dope.log`. The
|
|
583
639
|
standalone `substitute` command is removed.
|
|
584
640
|
|
|
641
|
+
### Automatic separation in 1.7.6
|
|
642
|
+
|
|
643
|
+
```powershell
|
|
644
|
+
pmk dope -i LiI-333.vasp -se Li -sn 18 -we Cu -on 100 -o Li90Cu18I108 -ref Cu Cu -seed 42
|
|
645
|
+
pmk dope -i LiI-333.vasp -se Li -sn 18 -we vac -on 100 -o Li90I108 -ref vac vac -seed 42
|
|
646
|
+
```
|
|
647
|
+
|
|
648
|
+
With `-sn` and `-on`, an identical reference pair enables automatic max–min
|
|
649
|
+
optimization. One selector and one replacement species are supported, including
|
|
650
|
+
`-we Na -ref Na Na`; mixed references are rejected. Without `-ref`, ordinary
|
|
651
|
+
random substitution/removal is unchanged. `vac` is canonical; `none` is deprecated.
|
|
652
|
+
The primary score is the minimum periodic pair distance, including fixed preexisting
|
|
653
|
+
replacement atoms. Vacancy geometry uses original removed-site coordinates.
|
|
654
|
+
|
|
655
|
+
Small spaces (at most 2,000 combinations) are enumerated exactly. Larger spaces use
|
|
656
|
+
seeded randomized farthest insertion and one-site exchanges. Default restart budget:
|
|
657
|
+
`max(4 * outputs, 8 * ceil(eligible / selected))`; at most `2 * selected` sweeps per
|
|
658
|
+
restart, stopping earlier when no improvement is found. Internal `optimize_sites`
|
|
659
|
+
keyword budgets support controlled validation. Initial and optimized candidates are
|
|
660
|
+
pooled, deduplicated by original indices, then ranked by minimum distance, mean
|
|
661
|
+
nearest-neighbor distance and mean pair distance. Scores rounded to 10 decimal places
|
|
662
|
+
resolve numerical ties; overlap diversity and index order break ties. No secondary
|
|
663
|
+
score can override a primary difference larger than that numerical tolerance.
|
|
664
|
+
|
|
665
|
+
`-on 100` returns the best 100 distinct configurations found, not necessarily global
|
|
666
|
+
optima or symmetry-inequivalent structures. Insufficient combinations or exhausted
|
|
667
|
+
budgets report actual counts and termination. Distance-matrix memory is quadratic in
|
|
668
|
+
eligible plus fixed sites. Identical input, seed, arguments and dependency versions
|
|
669
|
+
reproduce selections. Both doping and vacancy operations share this engine.
|
|
670
|
+
|
|
671
|
+
Default filenames remain `<input-stem>_r1.cif`, etc., in `<input-stem>_dope/` or `-o`.
|
|
672
|
+
Optimized CIFs use P1 to preserve the original cell and fractional coordinates;
|
|
673
|
+
VASP output keeps existing species grouping. Every optimized structure is reloaded
|
|
674
|
+
and checked for composition, lattice metric, retained positions and separation.
|
|
675
|
+
`optimization-summary.txt` is tab-separated with JSON metadata in a comment. It
|
|
676
|
+
contains filename, minimum and mean NN distances (Angstrom), packing diagnostic,
|
|
677
|
+
ratio, zero-based original indices and fractional coordinates. Metadata includes seed,
|
|
678
|
+
counts, fixed sites, budgets, method, termination and best/worst/median separation.
|
|
679
|
+
|
|
680
|
+
Optional exact certification runs **after** the same heuristic search:
|
|
681
|
+
|
|
682
|
+
```text
|
|
683
|
+
pmk dope -i LiI-333.vasp -se Li -sn 18 -we Cu -on 100 -o Li90Cu18I108 -ref Cu Cu --certify-optimum
|
|
684
|
+
pmk dope -i LiI-333.vasp -se Li -sn 18 -we vac -on 100 -o Li90I108 -ref vac vac --certify-optimum --certify-time-limit 120
|
|
685
|
+
```
|
|
686
|
+
|
|
687
|
+
`--certify-time-limit` must be finite and positive and requires `--certify-optimum`.
|
|
688
|
+
Its default is 120 seconds for the entire certification stage; it does not change
|
|
689
|
+
the heuristic budget. Certification requires the automatic `-sn/-on/-ref` mode.
|
|
690
|
+
Small enumerated spaces reuse their proof without invoking a solver. Otherwise
|
|
691
|
+
SciPy's `optimize.milp` (SciPy >= 1.9, bundled HiGHS) tests sparse conflict graphs:
|
|
692
|
+
binary x_i selects a site, sum(x_i)=K, and x_i+x_j<=1 when d_ij<t. Candidate sites
|
|
693
|
+
too close to fixed dopants are disabled; conflicting fixed pairs make t infeasible.
|
|
694
|
+
Binary search over discrete periodic distance levels finds the largest feasible
|
|
695
|
+
threshold. A validated configuration plus proof that the next level is infeasible
|
|
696
|
+
(or exhaustion of all levels) certifies the global max-min distance.
|
|
697
|
+
|
|
698
|
+
All distinct float64 distance levels are retained without rounding or grouping.
|
|
699
|
+
Conflicts use strict d<t; returned configurations must satisfy d>=t with no distance
|
|
700
|
+
relaxation. Binary variables are checked within 1e-6 of 0 or 1. This conservative
|
|
701
|
+
policy may require extra solves for nearly identical distances. Proofs refer to
|
|
702
|
+
the computed geometry subject to HiGHS numerical tolerances, not exact arithmetic.
|
|
703
|
+
The packing diagnostic is not used to prune the proof search.
|
|
704
|
+
|
|
705
|
+
`optimality-certificate.json` records input, species, site indices, seed, solver
|
|
706
|
+
and SciPy version, distance policy, per-threshold outcomes, runtime, bounds and
|
|
707
|
+
saved-structure classifications. `CERTIFIED_OPTIMAL` means the proof completed;
|
|
708
|
+
`IMPROVED_NOT_CERTIFIED` means a validated improvement was retained without proof;
|
|
709
|
+
`NOT_CERTIFIED` means no proof or improvement was obtained. Timeouts and solver
|
|
710
|
+
failures retain valid candidates and never imply infeasibility. Invalid returned
|
|
711
|
+
incumbents are errors. Missing MILP support is reported without losing heuristic
|
|
712
|
+
outputs. Valid solver discoveries enter the existing pool before ranking.
|
|
713
|
+
|
|
714
|
+
The certificate distinguishes the optimum from the number of generated structures
|
|
715
|
+
attaining it; `-on 100` does not imply 100 optimal or symmetry-inequivalent structures.
|
|
716
|
+
Default runs do not import or execute certification code or create this report.
|
|
717
|
+
Geometric separation optimality does not establish energetic or thermodynamic stability.
|
|
718
|
+
|
|
719
|
+
The equal-sphere packing diagnostic is
|
|
720
|
+
`D_upper = (6 * (pi / sqrt(18)) * V / (N * pi)) ** (1/3)`, with total objective-site
|
|
721
|
+
count N including fixed dopants. It is a geometric restriction, not an attainable-site
|
|
722
|
+
promise or proof of heuristic optimality. Physical radii are irrelevant. If the
|
|
723
|
+
shortest self-image lattice translation is smaller than this value, the formula need
|
|
724
|
+
not bound the distinct-site objective: metadata marks it inapplicable and the ratio
|
|
725
|
+
is `nan`. No arbitrary physical cutoff is imposed.
|
|
726
|
+
|
|
727
|
+
`-d`/`-distance` is removed and reports migration guidance. Legacy reference removal
|
|
728
|
+
is selected only when both `-sn` and `-on` are absent:
|
|
729
|
+
|
|
730
|
+
```powershell
|
|
731
|
+
pmk dope -i input.cif -se Li -we vac -ref La Ta --reference-cutoffs 1.01 1.02
|
|
732
|
+
```
|
|
733
|
+
|
|
734
|
+
Cutoffs remain Angstrom, one per reference. Omitting them preserves
|
|
735
|
+
`0.7 * (Cordero covalent radius sum)`, sourced from ASE for H through Cm; missing
|
|
736
|
+
radii require an explicit cutoff. Output remains `<input-stem>_dope.cif` in the
|
|
737
|
+
invocation directory. `--reference-cutoffs` is rejected in automatic mode.
|
|
738
|
+
Execution logging remains in `dope.log`.
|
|
739
|
+
|
|
585
740
|
### Breaking changes in v1.7.0
|
|
586
741
|
|
|
587
742
|
- `gpumd-thermo` and `gpumd-msd` are replaced by `gpumd-out -thermo` and
|
|
@@ -7,6 +7,39 @@ 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.7 release notes
|
|
11
|
+
|
|
12
|
+
- Automatic `pmk dope` uses exact incremental exchange scores and bounded 2D
|
|
13
|
+
work arrays, preserving the three ranking metrics and search budgets.
|
|
14
|
+
- `--n-jobs N` runs independent restarts in N processes (default: 1).
|
|
15
|
+
Choose N for your CPU allocation; large problems benefit most and speedup
|
|
16
|
+
need not be proportional. This does not set MILP solver threads.
|
|
17
|
+
- Restart seeds now use `SeedSequence.spawn`: results are reproducible across
|
|
18
|
+
worker counts, but a seed need not reproduce the 1.7.6 configurations.
|
|
19
|
+
- Exact enumeration stays serial. Summary metadata reports actual workers,
|
|
20
|
+
timings (worker times are summed), sweeps, and attempted/accepted exchanges.
|
|
21
|
+
|
|
22
|
+
```powershell
|
|
23
|
+
pmk dope -i LiI-777.vasp -se Li -sn 392 -we vac -on 10 -o vacancies -ref vac vac -seed 42 --n-jobs 1
|
|
24
|
+
pmk dope -i LiI-777.vasp -se Li -sn 392 -we vac -on 10 -o vacancies-n4 -ref vac vac -seed 42 --n-jobs 4
|
|
25
|
+
pmk dope -i LiI-777.vasp -se Li -sn 392 -we vac -on 10 -o vacancies-n8 -ref vac vac -seed 42 --n-jobs 8
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Values above 1 require automatic optimization; ordinary generation and legacy
|
|
29
|
+
removal reject them. One process creates no workers. The float64 distance matrix
|
|
30
|
+
is shared read-only; workers return candidates and the parent writes and validates
|
|
31
|
+
outputs. Optional threadpoolctl limits numerical threads within each worker.
|
|
32
|
+
`--certify-optimum` and `--certify-time-limit` retain their existing meaning.
|
|
33
|
+
|
|
34
|
+
## 1.7.6 release notes
|
|
35
|
+
|
|
36
|
+
- `pmk dope -ref ELEMENT ELEMENT` now optimizes minimum periodic separation
|
|
37
|
+
when used with `-sn` and `-on`; `-we vac -ref vac vac` optimizes vacancy sites.
|
|
38
|
+
- `-d` is removed. Legacy reference removal uses `--reference-cutoffs`.
|
|
39
|
+
- Optimized structures are validated after writing and accompanied by a ranked
|
|
40
|
+
`optimization-summary.txt`. Scientific data reuse replaces the radius table,
|
|
41
|
+
symmetry-expression evaluation and duplicated exact SI constants.
|
|
42
|
+
|
|
10
43
|
## 1.7.5 release notes
|
|
11
44
|
|
|
12
45
|
- `pmk msd` reuses compatible full-trajectory or segment results, including
|
|
@@ -86,7 +119,7 @@ installed.
|
|
|
86
119
|
On a machine with Internet access, run:
|
|
87
120
|
|
|
88
121
|
```bash
|
|
89
|
-
python -m pip download pymdkit==1.7.
|
|
122
|
+
python -m pip download pymdkit==1.7.7 -d pymdkit-offline
|
|
90
123
|
```
|
|
91
124
|
|
|
92
125
|
This downloads `pymdkit` and the dependencies resolved by pip into the
|
|
@@ -94,14 +127,14 @@ This downloads `pymdkit` and the dependencies resolved by pip into the
|
|
|
94
127
|
system. Then, inside the target pymdkit Python or conda environment, run:
|
|
95
128
|
|
|
96
129
|
```bash
|
|
97
|
-
python -m pip install --no-index --find-links=pymdkit-offline pymdkit==1.7.
|
|
130
|
+
python -m pip install --no-index --find-links=pymdkit-offline pymdkit==1.7.7
|
|
98
131
|
```
|
|
99
132
|
|
|
100
133
|
For optional GPU use, prepare the bundle on a networked machine compatible with
|
|
101
134
|
the target HPC platform and Python environment:
|
|
102
135
|
|
|
103
136
|
```bash
|
|
104
|
-
python -m pip download "pymdkit[gpu-cuda12]==1.7.
|
|
137
|
+
python -m pip download "pymdkit[gpu-cuda12]==1.7.7" -d pymdkit-offline
|
|
105
138
|
```
|
|
106
139
|
|
|
107
140
|
Transfer the whole `pymdkit-offline` directory, then install from it on the
|
|
@@ -109,7 +142,7 @@ target system:
|
|
|
109
142
|
|
|
110
143
|
```bash
|
|
111
144
|
python -m pip install --no-index --find-links=pymdkit-offline \
|
|
112
|
-
"pymdkit[gpu-cuda12]==1.7.
|
|
145
|
+
"pymdkit[gpu-cuda12]==1.7.7"
|
|
113
146
|
```
|
|
114
147
|
|
|
115
148
|
This GPU bundle includes the optional `cupy-cuda12x` package. Its wheels must also
|
|
@@ -219,8 +252,8 @@ pmk supercell -i model.vasp -o model-sc.vasp -matrix 1x1x2
|
|
|
219
252
|
pmk supercell -if structures -of capped -max-abc 40
|
|
220
253
|
pmk supercell -if structures -of close -close-abc 50
|
|
221
254
|
|
|
222
|
-
pmk gpumd-job -if Li3YCl6-all -supercell-close-abc 50 -nep nep.txt -in run.in -temp 300 320 340 360 -group Li Y Cl
|
|
223
|
-
pmk gpumd-job -it train.xyz -supercell-matrix 2x2x2 -nep nep.txt -group Li Y Cl
|
|
255
|
+
pmk gpumd-job -if Li3YCl6-all -supercell-close-abc 50 -nep nep.txt -in run.in -temp 300 320 340 360 -group Li Y Cl -pos-only no
|
|
256
|
+
pmk gpumd-job -it train.xyz -supercell-matrix 2x2x2 -nep nep.txt -group Li Y Cl -pos-only no
|
|
224
257
|
pmk submit -gpumd
|
|
225
258
|
pmk submit -gpumd -subscript custom_gpumd.pbs -queue pbs -max-job-num 30
|
|
226
259
|
|
|
@@ -381,9 +414,32 @@ once globally and the selection is then partitioned by Config_type.
|
|
|
381
414
|
and `-in` default to `nep.txt` and `run.in` in the invocation directory. Each
|
|
382
415
|
job receives `model.xyz` as extxyz, the potential as `nep.txt`, and the input as
|
|
383
416
|
`run.in`; the `potential` line is synchronized to `nep.txt`. With `-temp`, PMK
|
|
384
|
-
creates `<structure>/<T
|
|
385
|
-
`-
|
|
386
|
-
|
|
417
|
+
creates `<structure>/<T>/` and replaces every `target_t` token with T.
|
|
418
|
+
`-pos-only yes` is the default: each model has exactly
|
|
419
|
+
`Properties=species:S:1:pos:R:3` and four fields per atom (species, x, y, z).
|
|
420
|
+
Cell, PBC, coordinates and atom order are retained; momenta, forces, group labels
|
|
421
|
+
and all other per-atom properties are omitted. Use `-pos-only no` to retain the
|
|
422
|
+
previous full-property writer, including labels assigned with `-group`.
|
|
423
|
+
|
|
424
|
+
```bash
|
|
425
|
+
pmk gpumd-job -if opted-vasp -nep nep.txt -in run.in -temp 300 400 500 600
|
|
426
|
+
pmk gpumd-job -if opted-vasp -nep nep.txt -in run.in -temp 300 400 500 600 -pos-only no
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
Explicit `npt_scr` pressure tokens, including zero and scientific notation, are
|
|
430
|
+
preserved. Cubic cells retain scalar pressure syntax and its elastic modulus and
|
|
431
|
+
coupling parameters. Non-cubic orthorhombic cells expand scalar pressure and modulus
|
|
432
|
+
into three matching components. Non-orthogonal cells use six components: scalar
|
|
433
|
+
pressure expands to three normal pressures and zero shear pressures, with the
|
|
434
|
+
specified modulus repeated. Existing complete directional controls are preserved;
|
|
435
|
+
when expanding three components to six, missing shear pressures are zero and
|
|
436
|
+
missing shear moduli use the established value 100. Cubic geometry requires angles
|
|
437
|
+
within 1e-4 degrees of 90 and a maximum length difference no greater than
|
|
438
|
+
`1e-6 A + 1e-5 * max(a,b,c)`. This is a cell-metric check, not a space-group analysis.
|
|
439
|
+
Only wholly absent pressure controls use the established defaults (`1e-04`, modulus
|
|
440
|
+
100, coupling 1000); incomplete control lists report an error. Template files,
|
|
441
|
+
comments, and unrelated commands remain intact apart from the existing temperature
|
|
442
|
+
and potential-filename substitutions. In `-if` mode, an existing final job
|
|
387
443
|
folder (including an empty one) is left untouched while missing siblings are
|
|
388
444
|
still generated. With `-temp`, every structure/temperature folder is checked
|
|
389
445
|
independently.
|
|
@@ -543,7 +599,7 @@ the strict `-max-ehull` filter using `ehull.txt` by default. All modes use
|
|
|
543
599
|
### Doping structures
|
|
544
600
|
|
|
545
601
|
```text
|
|
546
|
-
pmk dope -i FILE -se SELECTOR... [-sn NUMBER...] -we ELEMENT|
|
|
602
|
+
pmk dope -i FILE -se SELECTOR... [-sn NUMBER...] -we ELEMENT|vac... [-wn NUMBER...] [-on NUMBER] [-ref SELECTOR...] [--reference-cutoffs DISTANCE...] [-o DIR | -output-folder DIR] [-output-format FORMAT] [-seed INTEGER]
|
|
547
603
|
```
|
|
548
604
|
|
|
549
605
|
`dope` replaces `substitute` and preserves its validation,
|
|
@@ -552,6 +608,105 @@ Random mode defaults to `<input-stem>_dope/`; reference-distance mode defaults
|
|
|
552
608
|
to `<input-stem>_dope.cif`. Execution details are written to `dope.log`. The
|
|
553
609
|
standalone `substitute` command is removed.
|
|
554
610
|
|
|
611
|
+
### Automatic separation in 1.7.6
|
|
612
|
+
|
|
613
|
+
```powershell
|
|
614
|
+
pmk dope -i LiI-333.vasp -se Li -sn 18 -we Cu -on 100 -o Li90Cu18I108 -ref Cu Cu -seed 42
|
|
615
|
+
pmk dope -i LiI-333.vasp -se Li -sn 18 -we vac -on 100 -o Li90I108 -ref vac vac -seed 42
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
With `-sn` and `-on`, an identical reference pair enables automatic max–min
|
|
619
|
+
optimization. One selector and one replacement species are supported, including
|
|
620
|
+
`-we Na -ref Na Na`; mixed references are rejected. Without `-ref`, ordinary
|
|
621
|
+
random substitution/removal is unchanged. `vac` is canonical; `none` is deprecated.
|
|
622
|
+
The primary score is the minimum periodic pair distance, including fixed preexisting
|
|
623
|
+
replacement atoms. Vacancy geometry uses original removed-site coordinates.
|
|
624
|
+
|
|
625
|
+
Small spaces (at most 2,000 combinations) are enumerated exactly. Larger spaces use
|
|
626
|
+
seeded randomized farthest insertion and one-site exchanges. Default restart budget:
|
|
627
|
+
`max(4 * outputs, 8 * ceil(eligible / selected))`; at most `2 * selected` sweeps per
|
|
628
|
+
restart, stopping earlier when no improvement is found. Internal `optimize_sites`
|
|
629
|
+
keyword budgets support controlled validation. Initial and optimized candidates are
|
|
630
|
+
pooled, deduplicated by original indices, then ranked by minimum distance, mean
|
|
631
|
+
nearest-neighbor distance and mean pair distance. Scores rounded to 10 decimal places
|
|
632
|
+
resolve numerical ties; overlap diversity and index order break ties. No secondary
|
|
633
|
+
score can override a primary difference larger than that numerical tolerance.
|
|
634
|
+
|
|
635
|
+
`-on 100` returns the best 100 distinct configurations found, not necessarily global
|
|
636
|
+
optima or symmetry-inequivalent structures. Insufficient combinations or exhausted
|
|
637
|
+
budgets report actual counts and termination. Distance-matrix memory is quadratic in
|
|
638
|
+
eligible plus fixed sites. Identical input, seed, arguments and dependency versions
|
|
639
|
+
reproduce selections. Both doping and vacancy operations share this engine.
|
|
640
|
+
|
|
641
|
+
Default filenames remain `<input-stem>_r1.cif`, etc., in `<input-stem>_dope/` or `-o`.
|
|
642
|
+
Optimized CIFs use P1 to preserve the original cell and fractional coordinates;
|
|
643
|
+
VASP output keeps existing species grouping. Every optimized structure is reloaded
|
|
644
|
+
and checked for composition, lattice metric, retained positions and separation.
|
|
645
|
+
`optimization-summary.txt` is tab-separated with JSON metadata in a comment. It
|
|
646
|
+
contains filename, minimum and mean NN distances (Angstrom), packing diagnostic,
|
|
647
|
+
ratio, zero-based original indices and fractional coordinates. Metadata includes seed,
|
|
648
|
+
counts, fixed sites, budgets, method, termination and best/worst/median separation.
|
|
649
|
+
|
|
650
|
+
Optional exact certification runs **after** the same heuristic search:
|
|
651
|
+
|
|
652
|
+
```text
|
|
653
|
+
pmk dope -i LiI-333.vasp -se Li -sn 18 -we Cu -on 100 -o Li90Cu18I108 -ref Cu Cu --certify-optimum
|
|
654
|
+
pmk dope -i LiI-333.vasp -se Li -sn 18 -we vac -on 100 -o Li90I108 -ref vac vac --certify-optimum --certify-time-limit 120
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
`--certify-time-limit` must be finite and positive and requires `--certify-optimum`.
|
|
658
|
+
Its default is 120 seconds for the entire certification stage; it does not change
|
|
659
|
+
the heuristic budget. Certification requires the automatic `-sn/-on/-ref` mode.
|
|
660
|
+
Small enumerated spaces reuse their proof without invoking a solver. Otherwise
|
|
661
|
+
SciPy's `optimize.milp` (SciPy >= 1.9, bundled HiGHS) tests sparse conflict graphs:
|
|
662
|
+
binary x_i selects a site, sum(x_i)=K, and x_i+x_j<=1 when d_ij<t. Candidate sites
|
|
663
|
+
too close to fixed dopants are disabled; conflicting fixed pairs make t infeasible.
|
|
664
|
+
Binary search over discrete periodic distance levels finds the largest feasible
|
|
665
|
+
threshold. A validated configuration plus proof that the next level is infeasible
|
|
666
|
+
(or exhaustion of all levels) certifies the global max-min distance.
|
|
667
|
+
|
|
668
|
+
All distinct float64 distance levels are retained without rounding or grouping.
|
|
669
|
+
Conflicts use strict d<t; returned configurations must satisfy d>=t with no distance
|
|
670
|
+
relaxation. Binary variables are checked within 1e-6 of 0 or 1. This conservative
|
|
671
|
+
policy may require extra solves for nearly identical distances. Proofs refer to
|
|
672
|
+
the computed geometry subject to HiGHS numerical tolerances, not exact arithmetic.
|
|
673
|
+
The packing diagnostic is not used to prune the proof search.
|
|
674
|
+
|
|
675
|
+
`optimality-certificate.json` records input, species, site indices, seed, solver
|
|
676
|
+
and SciPy version, distance policy, per-threshold outcomes, runtime, bounds and
|
|
677
|
+
saved-structure classifications. `CERTIFIED_OPTIMAL` means the proof completed;
|
|
678
|
+
`IMPROVED_NOT_CERTIFIED` means a validated improvement was retained without proof;
|
|
679
|
+
`NOT_CERTIFIED` means no proof or improvement was obtained. Timeouts and solver
|
|
680
|
+
failures retain valid candidates and never imply infeasibility. Invalid returned
|
|
681
|
+
incumbents are errors. Missing MILP support is reported without losing heuristic
|
|
682
|
+
outputs. Valid solver discoveries enter the existing pool before ranking.
|
|
683
|
+
|
|
684
|
+
The certificate distinguishes the optimum from the number of generated structures
|
|
685
|
+
attaining it; `-on 100` does not imply 100 optimal or symmetry-inequivalent structures.
|
|
686
|
+
Default runs do not import or execute certification code or create this report.
|
|
687
|
+
Geometric separation optimality does not establish energetic or thermodynamic stability.
|
|
688
|
+
|
|
689
|
+
The equal-sphere packing diagnostic is
|
|
690
|
+
`D_upper = (6 * (pi / sqrt(18)) * V / (N * pi)) ** (1/3)`, with total objective-site
|
|
691
|
+
count N including fixed dopants. It is a geometric restriction, not an attainable-site
|
|
692
|
+
promise or proof of heuristic optimality. Physical radii are irrelevant. If the
|
|
693
|
+
shortest self-image lattice translation is smaller than this value, the formula need
|
|
694
|
+
not bound the distinct-site objective: metadata marks it inapplicable and the ratio
|
|
695
|
+
is `nan`. No arbitrary physical cutoff is imposed.
|
|
696
|
+
|
|
697
|
+
`-d`/`-distance` is removed and reports migration guidance. Legacy reference removal
|
|
698
|
+
is selected only when both `-sn` and `-on` are absent:
|
|
699
|
+
|
|
700
|
+
```powershell
|
|
701
|
+
pmk dope -i input.cif -se Li -we vac -ref La Ta --reference-cutoffs 1.01 1.02
|
|
702
|
+
```
|
|
703
|
+
|
|
704
|
+
Cutoffs remain Angstrom, one per reference. Omitting them preserves
|
|
705
|
+
`0.7 * (Cordero covalent radius sum)`, sourced from ASE for H through Cm; missing
|
|
706
|
+
radii require an explicit cutoff. Output remains `<input-stem>_dope.cif` in the
|
|
707
|
+
invocation directory. `--reference-cutoffs` is rejected in automatic mode.
|
|
708
|
+
Execution logging remains in `dope.log`.
|
|
709
|
+
|
|
555
710
|
### Breaking changes in v1.7.0
|
|
556
711
|
|
|
557
712
|
- `gpumd-thermo` and `gpumd-msd` are replaced by `gpumd-out -thermo` and
|
|
@@ -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.7"
|
|
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"
|