pwdata 0.2.10__tar.gz → 0.2.11__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.

Files changed (37) hide show
  1. {pwdata-0.2.10 → pwdata-0.2.11}/PKG-INFO +1 -1
  2. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/outcar.py +14 -12
  3. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata.egg-info/PKG-INFO +1 -1
  4. {pwdata-0.2.10 → pwdata-0.2.11}/setup.py +1 -1
  5. {pwdata-0.2.10 → pwdata-0.2.11}/LICENSE +0 -0
  6. {pwdata-0.2.10 → pwdata-0.2.11}/README.md +0 -0
  7. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/__init__.py +0 -0
  8. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/atomconfig.py +0 -0
  9. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/build/__init__.py +0 -0
  10. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/build/cell.py +0 -0
  11. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/build/geometry.py +0 -0
  12. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/build/supercells.py +0 -0
  13. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/build/write_struc.py +0 -0
  14. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/calculators/__init__.py +0 -0
  15. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/calculators/const.py +0 -0
  16. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/calculators/unitconvert_lmps.py +0 -0
  17. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/calculators/units.py +0 -0
  18. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/cp2kdata.py +0 -0
  19. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/datasets_saver.py +0 -0
  20. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/deepmd.py +0 -0
  21. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/dump.py +0 -0
  22. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/extendedxyz.py +0 -0
  23. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/image.py +0 -0
  24. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/lammpsdata.py +0 -0
  25. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/lmps.py +0 -0
  26. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/main.py +0 -0
  27. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/movement.py +0 -0
  28. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/movement_saver.py +0 -0
  29. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/pertub/__init__.py +0 -0
  30. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/pertub/perturbation.py +0 -0
  31. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/pertub/scale.py +0 -0
  32. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/poscar.py +0 -0
  33. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata/pwmlff.py +0 -0
  34. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata.egg-info/SOURCES.txt +0 -0
  35. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata.egg-info/dependency_links.txt +0 -0
  36. {pwdata-0.2.10 → pwdata-0.2.11}/pwdata.egg-info/top_level.txt +0 -0
  37. {pwdata-0.2.10 → pwdata-0.2.11}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pwdata
3
- Version: 0.2.10
3
+ Version: 0.2.11
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
- if atom_name not in atom_names:
33
- atom_names.append(atom_name)
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
- if prev_idx == 0:
61
- prev_idx = idx
62
- # continue
63
- else:
64
- # temp_images[idx] = outcar_contents[prev_idx:idx]
65
- if max_insw < nelm:
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])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pwdata
3
- Version: 0.2.10
3
+ Version: 0.2.11
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.10",
8
+ version="0.2.11",
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