ipyvasp 1.1.4__tar.gz → 1.1.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.
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/PKG-INFO +1 -1
- ipyvasp-1.1.5/ipyvasp/_version.py +1 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/core/serializer.py +8 -13
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp.egg-info/PKG-INFO +1 -1
- ipyvasp-1.1.4/ipyvasp/_version.py +0 -1
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/LICENSE +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/README.md +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/__init__.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/__main__.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/_enplots.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/_lattice.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/bsdos.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/cli.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/core/__init__.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/core/parser.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/core/plot_toolkit.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/core/spatial_toolkit.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/evals_dataframe.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/lattice.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/misc.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/potential.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/utils.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp/widgets.py +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp.egg-info/SOURCES.txt +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp.egg-info/dependency_links.txt +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp.egg-info/entry_points.txt +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp.egg-info/requires.txt +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/ipyvasp.egg-info/top_level.txt +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/setup.cfg +0 -0
- {ipyvasp-1.1.4 → ipyvasp-1.1.5}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.1.5"
|
|
@@ -810,14 +810,14 @@ class BrZoneData(Dict2Data):
|
|
|
810
810
|
pts = pts[mask]
|
|
811
811
|
return pts
|
|
812
812
|
|
|
813
|
-
# Orthogonal/Cartesian-aligned case
|
|
814
|
-
target_span = np.
|
|
813
|
+
# Orthogonal/Cartesian-aligned case, span of cell must be considered in cartesian space
|
|
814
|
+
target_span = (np.array(nxyz) - 1) * np.ptp(self.basis, axis=0) # total span in cartesian space
|
|
815
815
|
|
|
816
|
-
#
|
|
816
|
+
# Map Cartesian box corners to Lattice Space
|
|
817
817
|
corners_cart = np.array([[i, j, k] for i in [0, 1] for j in [0, 1] for k in [0, 1]]) * target_span
|
|
818
818
|
corners_frac = self.to_fractional(corners_cart)
|
|
819
819
|
|
|
820
|
-
#
|
|
820
|
+
# Find integer bounds (Must use +1 later for inclusive arange)
|
|
821
821
|
n_min = np.floor(corners_frac.min(axis=0)).astype(int)
|
|
822
822
|
n_max = np.ceil(corners_frac.max(axis=0)).astype(int)
|
|
823
823
|
|
|
@@ -825,18 +825,13 @@ class BrZoneData(Dict2Data):
|
|
|
825
825
|
grid_n = np.array(np.meshgrid(*ranges, indexing='ij')).T.reshape(-1, 3)
|
|
826
826
|
|
|
827
827
|
all_pts = self.to_cartesian(grid_n)
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
eps = 1e-9
|
|
828
|
+
|
|
829
|
+
eps = 1e-9 # Clip points to target span in cartesian space
|
|
831
830
|
mask = (all_pts >= -eps).all(axis=1) & (all_pts <= target_span + eps).all(axis=1)
|
|
832
831
|
pts = all_pts[mask]
|
|
833
|
-
|
|
834
|
-
N = np.cumprod(nxyz)[-1]
|
|
835
|
-
if len(pts) > N: # box becomes too much inclusive at larger points, restrict that
|
|
836
|
-
dist = np.linalg.norm(pts - pts.mean(axis=0), axis=1)
|
|
837
|
-
pts = pts[np.argsort(dist)[:N]]
|
|
832
|
+
pts = pts - pts.min(axis=0) # shift to zero, in case of cell, they don't start at zero
|
|
838
833
|
|
|
839
|
-
#
|
|
834
|
+
# Apply Global Normalized filter (preserves geometry)
|
|
840
835
|
if filter and len(pts) > 0:
|
|
841
836
|
p_min, p_max = pts.min(axis=0), pts.max(axis=0)
|
|
842
837
|
global_range = np.max(p_max - p_min) or 1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.1.4"
|
|
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
|