pwdata 0.2.2__tar.gz → 0.2.3__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 (36) hide show
  1. {pwdata-0.2.2 → pwdata-0.2.3}/PKG-INFO +1 -1
  2. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/image.py +2 -0
  3. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/main.py +5 -0
  4. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata.egg-info/PKG-INFO +1 -1
  5. {pwdata-0.2.2 → pwdata-0.2.3}/setup.py +1 -1
  6. {pwdata-0.2.2 → pwdata-0.2.3}/LICENSE +0 -0
  7. {pwdata-0.2.2 → pwdata-0.2.3}/README.md +0 -0
  8. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/__init__.py +0 -0
  9. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/atomconfig.py +0 -0
  10. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/build/__init__.py +0 -0
  11. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/build/cell.py +0 -0
  12. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/build/geometry.py +0 -0
  13. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/build/supercells.py +0 -0
  14. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/build/write_struc.py +0 -0
  15. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/calculators/__init__.py +0 -0
  16. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/calculators/const.py +0 -0
  17. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/calculators/unitconvert_lmps.py +0 -0
  18. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/calculators/units.py +0 -0
  19. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/configop.py +0 -0
  20. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/cp2kdata.py +0 -0
  21. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/datasets_saver.py +0 -0
  22. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/dump.py +0 -0
  23. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/extendedxyz.py +0 -0
  24. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/lammpsdata.py +0 -0
  25. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/lmps.py +0 -0
  26. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/movement.py +0 -0
  27. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/movement_saver.py +0 -0
  28. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/outcar.py +0 -0
  29. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/pertub/__init__.py +0 -0
  30. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/pertub/perturbation.py +0 -0
  31. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/pertub/scale.py +0 -0
  32. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata/poscar.py +0 -0
  33. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata.egg-info/SOURCES.txt +0 -0
  34. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata.egg-info/dependency_links.txt +0 -0
  35. {pwdata-0.2.2 → pwdata-0.2.3}/pwdata.egg-info/top_level.txt +0 -0
  36. {pwdata-0.2.2 → pwdata-0.2.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pwdata
3
- Version: 0.2.2
3
+ Version: 0.2.3
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
@@ -91,6 +91,8 @@ class Image(object):
91
91
  write_vasp(self, output_path, data_name, direct=direct, sort=sort, wrap=wrap)
92
92
  elif save_format.lower() == "lammps/lmp":
93
93
  write_lammps(self, output_path, data_name, sort=sort, wrap=wrap)
94
+ elif save_format.lower() == "extxyz":
95
+ raise Exception()
94
96
  else:
95
97
  raise RuntimeError('Unknown file format')
96
98
 
@@ -118,6 +118,11 @@ class Config(object):
118
118
 
119
119
  def _read(self):
120
120
  return Config.read(self.format, self.data_path, self.pbc, self.atom_names, self.index, **self.kwargs)
121
+
122
+ def append(self, images_obj):
123
+ if not hasattr(self, 'images'):
124
+ self.images = []
125
+ self.images += images_obj.images
121
126
 
122
127
  @staticmethod
123
128
  def read(format: str, data_path: str, pbc = None, atom_names = None, index = ':', **kwargs):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pwdata
3
- Version: 0.2.2
3
+ Version: 0.2.3
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.2",
8
+ version="0.2.3",
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