ipyvasp 1.1.5__tar.gz → 1.1.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.
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/PKG-INFO +1 -1
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/_enplots.py +2 -2
- ipyvasp-1.1.7/ipyvasp/_version.py +1 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/bsdos.py +1 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/core/plot_toolkit.py +1 -1
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/core/serializer.py +4 -3
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp.egg-info/PKG-INFO +1 -1
- ipyvasp-1.1.5/ipyvasp/_version.py +0 -1
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/LICENSE +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/README.md +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/__init__.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/__main__.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/_lattice.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/cli.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/core/__init__.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/core/parser.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/core/spatial_toolkit.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/evals_dataframe.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/lattice.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/misc.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/potential.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/utils.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp/widgets.py +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp.egg-info/SOURCES.txt +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp.egg-info/dependency_links.txt +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp.egg-info/entry_points.txt +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp.egg-info/requires.txt +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/ipyvasp.egg-info/top_level.txt +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/setup.cfg +0 -0
- {ipyvasp-1.1.5 → ipyvasp-1.1.7}/setup.py +0 -0
|
@@ -832,7 +832,7 @@ _hover_temp = { # keep order same
|
|
|
832
832
|
|
|
833
833
|
@gu._fmt_doc(_docs)
|
|
834
834
|
def iplot_bands(
|
|
835
|
-
K, E, occs = None, fig=None, elim=None, kticks=None, interp=None, title=None, **kwargs
|
|
835
|
+
K, E, occs = None, kpoints=None, fig=None, elim=None, kticks=None, interp=None, title=None, **kwargs
|
|
836
836
|
):
|
|
837
837
|
"""Plot band structure using plotly.
|
|
838
838
|
{params}\n {K}\n {E}
|
|
@@ -857,7 +857,7 @@ def iplot_bands(
|
|
|
857
857
|
["X"],
|
|
858
858
|
interp,
|
|
859
859
|
E if occs is None else occs,
|
|
860
|
-
np.array([K, K, K]).
|
|
860
|
+
np.array([K, K, K]).T if kpoints is None else kpoints, # for hover, use correct points
|
|
861
861
|
maxwidth=1,
|
|
862
862
|
indices=indices,
|
|
863
863
|
) # moking other arrays, we need only
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.1.7"
|
|
@@ -260,7 +260,7 @@ def get_axes(
|
|
|
260
260
|
axs_dict[i] = ax
|
|
261
261
|
|
|
262
262
|
for key, ax in axs_dict.items():
|
|
263
|
-
if is_match(axes_off, key): ax.set_axis_off()
|
|
263
|
+
if axes_off is True or is_match(axes_off, key): ax.set_axis_off()
|
|
264
264
|
if ax.name == "3d": ax.view_init(elev=elev, azim=azim)
|
|
265
265
|
_monkey_patch(ax)
|
|
266
266
|
|
|
@@ -774,7 +774,7 @@ class BrZoneData(Dict2Data):
|
|
|
774
774
|
nxyz : list or tuple of 3 ints
|
|
775
775
|
Number of tiles along each cartesian direction [nx, ny, nz].
|
|
776
776
|
Must be 3 positive integers.
|
|
777
|
-
If primitive = False, result is not guaranteed to be same size as ``nx * ny * nz`` due to
|
|
777
|
+
If primitive = False, result is not guaranteed to be same size as ``nx * ny * nz`` due to lack of basis alignment with orthogonal axes.
|
|
778
778
|
filter : callable, optional
|
|
779
779
|
Function filter(x,y,z) that takes normalized (to 1) cartesian coordinates and returns bool.
|
|
780
780
|
primitive : bool
|
|
@@ -811,7 +811,8 @@ class BrZoneData(Dict2Data):
|
|
|
811
811
|
return pts
|
|
812
812
|
|
|
813
813
|
# Orthogonal/Cartesian-aligned case, span of cell must be considered in cartesian space
|
|
814
|
-
|
|
814
|
+
scale = np.ptp(self.normals[:3],axis=1) # X,Y,Z, shape (3, N) are face centers
|
|
815
|
+
target_span = (np.array(nxyz) - 1) * scale # total span in cartesian space
|
|
815
816
|
|
|
816
817
|
# Map Cartesian box corners to Lattice Space
|
|
817
818
|
corners_cart = np.array([[i, j, k] for i in [0, 1] for j in [0, 1] for k in [0, 1]]) * target_span
|
|
@@ -850,7 +851,7 @@ class CellData(Dict2Data):
|
|
|
850
851
|
_req_keys = ("basis", "faces", "vertices")
|
|
851
852
|
|
|
852
853
|
def __init__(self, d):
|
|
853
|
-
super().__init__({
|
|
854
|
+
super().__init__({**d, "primitive": True}) # to use BZ methods properly, but only in primitive mode
|
|
854
855
|
|
|
855
856
|
@property
|
|
856
857
|
def faces_coords(self):
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.1.5"
|
|
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
|