pwdata 0.2.10__tar.gz → 0.2.12__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.
Potentially problematic release.
This version of pwdata might be problematic. Click here for more details.
- {pwdata-0.2.10 → pwdata-0.2.12}/PKG-INFO +1 -1
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/outcar.py +14 -12
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/pwmlff.py +3 -1
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata.egg-info/PKG-INFO +1 -1
- {pwdata-0.2.10 → pwdata-0.2.12}/setup.py +1 -1
- {pwdata-0.2.10 → pwdata-0.2.12}/LICENSE +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/README.md +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/__init__.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/atomconfig.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/build/__init__.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/build/cell.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/build/geometry.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/build/supercells.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/build/write_struc.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/calculators/__init__.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/calculators/const.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/calculators/unitconvert_lmps.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/calculators/units.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/cp2kdata.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/datasets_saver.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/deepmd.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/dump.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/extendedxyz.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/image.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/lammpsdata.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/lmps.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/main.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/movement.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/movement_saver.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/pertub/__init__.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/pertub/perturbation.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/pertub/scale.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata/poscar.py +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata.egg-info/SOURCES.txt +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata.egg-info/dependency_links.txt +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/pwdata.egg-info/top_level.txt +0 -0
- {pwdata-0.2.10 → pwdata-0.2.12}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pwdata
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.12
|
|
4
4
|
Summary: pwdata is a data pre-processing tool for PWMLFF, which can be used to extract features and labels. It also provides convenient interfaces for data conversion between different software.
|
|
5
5
|
Home-page: https://github.com/LonxunQuantum/pwdata
|
|
6
6
|
Author: LonxunQuantum
|
|
@@ -29,8 +29,8 @@ class OUTCAR(object):
|
|
|
29
29
|
atom_names.append(_ii.split('_')[0])
|
|
30
30
|
else:
|
|
31
31
|
atom_name = _ii
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
if atom_name not in atom_names:
|
|
33
|
+
atom_names.append(atom_name)
|
|
34
34
|
elif 'ions per type' in ii:
|
|
35
35
|
atom_type_num_ = [int(s) for s in ii.split()[4:]]
|
|
36
36
|
if atom_type_num is None:
|
|
@@ -52,24 +52,26 @@ class OUTCAR(object):
|
|
|
52
52
|
|
|
53
53
|
max_scf_idx = 0
|
|
54
54
|
prev_idx = 0
|
|
55
|
-
# temp_images = {}
|
|
56
55
|
converged_images = []
|
|
57
56
|
max_insw = -1
|
|
58
57
|
for idx, ii in tqdm(enumerate(outcar_contents), total=len(outcar_contents), desc="Processing data"):
|
|
59
|
-
if "Ionic step" in ii:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
converged_images.append(outcar_contents[max_scf_idx:idx])
|
|
67
|
-
max_insw = 0
|
|
58
|
+
# if "Ionic step" in ii:
|
|
59
|
+
# if prev_idx == 0:
|
|
60
|
+
# prev_idx = idx
|
|
61
|
+
# else:
|
|
62
|
+
# if max_insw < nelm:
|
|
63
|
+
# converged_images.append(outcar_contents[max_scf_idx:idx])
|
|
64
|
+
# max_insw = 0
|
|
68
65
|
if "Iteration" in ii:
|
|
69
66
|
scf_index = int(ii.split()[3][:-1])
|
|
67
|
+
if scf_index == 1 and prev_idx != 0:
|
|
68
|
+
if max_insw < nelm:
|
|
69
|
+
converged_images.append(outcar_contents[max_scf_idx:idx])
|
|
70
|
+
max_insw = 0
|
|
70
71
|
if scf_index > max_insw:
|
|
71
72
|
max_insw = scf_index
|
|
72
73
|
max_scf_idx = idx
|
|
74
|
+
prev_idx = idx
|
|
73
75
|
if "Elapsed time (sec):" in ii:
|
|
74
76
|
if max_insw < nelm:
|
|
75
77
|
converged_images.append(outcar_contents[max_scf_idx:idx])
|
|
@@ -22,6 +22,7 @@ class PWNPY(object):
|
|
|
22
22
|
atom_type, atomic_energy, Ep, force, atom_types_image, lattice, coord, stress, image_nums, atom_nums = self.load_npy(npy_files)
|
|
23
23
|
lattice = lattice.reshape(-1, 3, 3)
|
|
24
24
|
coord = coord.reshape(-1, atom_nums, 3)
|
|
25
|
+
force = force.reshape(-1, atom_nums, 3)
|
|
25
26
|
for i in tqdm(range(image_nums), desc="Loading data"):
|
|
26
27
|
image = Image(lattice=lattice[i], position=coord[i], force=force[i], Ep=Ep[i], stress=stress[i],
|
|
27
28
|
cartesian=False, image_nums=i, atom_nums=atom_nums,
|
|
@@ -55,5 +56,6 @@ class PWNPY(object):
|
|
|
55
56
|
|
|
56
57
|
image_nums = len(Ep)
|
|
57
58
|
atom_nums = len(atom_types_image)
|
|
59
|
+
stress = stress.reshape(-1, 3, 3) if stress is not None else None
|
|
58
60
|
|
|
59
|
-
return atom_type, atomic_energy.squeeze(), Ep.squeeze(), force.squeeze(), atom_types_image, lattice.squeeze(), coord.squeeze(), stress
|
|
61
|
+
return atom_type, atomic_energy.squeeze(), Ep.squeeze(), force.squeeze(), atom_types_image, lattice.squeeze(), coord.squeeze(), stress, image_nums, atom_nums
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pwdata
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.12
|
|
4
4
|
Summary: pwdata is a data pre-processing tool for PWMLFF, which can be used to extract features and labels. It also provides convenient interfaces for data conversion between different software.
|
|
5
5
|
Home-page: https://github.com/LonxunQuantum/pwdata
|
|
6
6
|
Author: LonxunQuantum
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="pwdata",
|
|
8
|
-
version="0.2.
|
|
8
|
+
version="0.2.12",
|
|
9
9
|
author="LonxunQuantum",
|
|
10
10
|
author_email="lonxun@pwmat.com",
|
|
11
11
|
description="pwdata is a data pre-processing tool for PWMLFF, which can be used to extract features and labels. It also provides convenient interfaces for data conversion between different software.",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|