ipyvasp 1.0.2__tar.gz → 1.0.4__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.0.2 → ipyvasp-1.0.4}/PKG-INFO +1 -1
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/_lattice.py +2 -1
- ipyvasp-1.0.4/ipyvasp/_version.py +1 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/cli.py +1 -1
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/core/plot_toolkit.py +3 -11
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/widgets.py +6 -6
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp.egg-info/PKG-INFO +1 -1
- ipyvasp-1.0.2/ipyvasp/_version.py +0 -1
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/LICENSE +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/README.md +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/__init__.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/__main__.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/_enplots.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/bsdos.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/core/__init__.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/core/parser.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/core/serializer.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/core/spatial_toolkit.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/evals_dataframe.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/lattice.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/misc.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/potential.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp/utils.py +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp.egg-info/SOURCES.txt +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp.egg-info/dependency_links.txt +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp.egg-info/entry_points.txt +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp.egg-info/requires.txt +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/ipyvasp.egg-info/top_level.txt +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/setup.cfg +0 -0
- {ipyvasp-1.0.2 → ipyvasp-1.0.4}/setup.py +0 -0
|
@@ -2378,7 +2378,7 @@ def convert_poscar(poscar_data, atoms_mapping, basis_factor):
|
|
|
2378
2378
|
|
|
2379
2379
|
|
|
2380
2380
|
.. note::
|
|
2381
|
-
This can be used to strain basis vectors uniformly only. For non-uniform strain, use :func:`ipyvasp.POSCAR.
|
|
2381
|
+
This can be used to strain basis vectors uniformly only. For non-uniform strain, use :func:`ipyvasp.POSCAR.deform`.
|
|
2382
2382
|
"""
|
|
2383
2383
|
poscar_data = poscar_data.to_dict() # Avoid modifying original
|
|
2384
2384
|
poscar_data["types"] = {
|
|
@@ -2572,6 +2572,7 @@ def replace_atoms(poscar_data, func, name):
|
|
|
2572
2572
|
for i, k in enumerate(new_types.keys())
|
|
2573
2573
|
if len(new_types[k]) != 0
|
|
2574
2574
|
}
|
|
2575
|
+
data["SYSTEM"] = "".join(data["types"].keys()) # Update system name
|
|
2575
2576
|
return serializer.PoscarData(data) # Return new POSCAR
|
|
2576
2577
|
|
|
2577
2578
|
def sort_poscar(poscar_data, new_order):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.0.4"
|
|
@@ -74,7 +74,7 @@ def get_gap(files: List[Path]):
|
|
|
74
74
|
from .widgets import summarize
|
|
75
75
|
|
|
76
76
|
def gap_summary(path):
|
|
77
|
-
gap = Vasprun(path).bands.gap
|
|
77
|
+
gap = Vasprun(path, skipk=0).bands.gap # don't skip k-points here
|
|
78
78
|
delattr(gap, "coords") # remove coords info
|
|
79
79
|
d = gap.to_dict()
|
|
80
80
|
d["kvbm"] = "(" + ",".join(str(round(k, 4)) for k in d["kvbm"]) + ")"
|
|
@@ -25,18 +25,11 @@ from einteract import patched_plotly
|
|
|
25
25
|
from .spatial_toolkit import to_R3, rotation
|
|
26
26
|
from ..utils import _sig_kwargs
|
|
27
27
|
|
|
28
|
-
try:
|
|
29
|
-
from IPython.display import set_matplotlib_formats # old style in < py3.9
|
|
30
|
-
except ImportError:
|
|
31
|
-
from matplotlib_inline.backend_inline import set_matplotlib_formats
|
|
32
28
|
|
|
33
|
-
def global_matplotlib_settings(rcParams={}, display_format="svg"):
|
|
29
|
+
def global_matplotlib_settings(rcParams={}, display_format="svg"):
|
|
34
30
|
"Set global matplotlib settings for notebook."
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
# required for interactive plotting.
|
|
38
|
-
if get_ipython() and "inline" in mpl.get_backend():
|
|
39
|
-
set_matplotlib_formats(display_format)
|
|
31
|
+
if ip := get_ipython():
|
|
32
|
+
ip.run_line_magic("config", f"InlineBackend.figure_formats = ['{display_format}', 'svg', 'retina','png','jpeg']")
|
|
40
33
|
|
|
41
34
|
# Gloabal settings matplotlib with some defaults
|
|
42
35
|
rcParams = {
|
|
@@ -234,7 +227,6 @@ def get_axes(
|
|
|
234
227
|
pass
|
|
235
228
|
|
|
236
229
|
plt.subplots_adjust(**subplots_adjust_kwargs)
|
|
237
|
-
|
|
238
230
|
return axs
|
|
239
231
|
|
|
240
232
|
|
|
@@ -242,7 +242,7 @@ class Files:
|
|
|
242
242
|
return tuple(np.unique(np.hstack(files_tuples)))
|
|
243
243
|
|
|
244
244
|
@_sub_doc(ei.interactive,{"ipyslides.interaction":"einteract"})
|
|
245
|
-
def interactive(self, *funcs, auto_update=True,
|
|
245
|
+
def interactive(self, *funcs, auto_update=True, post_init:callable=None,**kwargs):
|
|
246
246
|
if 'file' in kwargs:
|
|
247
247
|
raise KeyError("file is a reserved keyword argument to select path to file!")
|
|
248
248
|
|
|
@@ -259,13 +259,13 @@ class Files:
|
|
|
259
259
|
if funcs and not has_file_param: # may be no func yet, that is test below
|
|
260
260
|
raise KeyError("At least one of funcs should take 'file' as parameter, none got it!")
|
|
261
261
|
|
|
262
|
-
return ei.interactive(*funcs,auto_update=auto_update,
|
|
262
|
+
return ei.interactive(*funcs,auto_update=auto_update, post_init=post_init, file = self.to_dropdown(), **kwargs)
|
|
263
263
|
|
|
264
264
|
@_sub_doc(ei.interact,{"ipyslides.interaction":"einteract"})
|
|
265
|
-
def interact(self, *funcs, auto_update=True,
|
|
265
|
+
def interact(self, *funcs, auto_update=True, post_init:callable=None,**kwargs):
|
|
266
266
|
def inner(func):
|
|
267
267
|
display(self.interactive(func, *funcs,
|
|
268
|
-
auto_update=auto_update,
|
|
268
|
+
auto_update=auto_update, post_init=post_init,
|
|
269
269
|
**kwargs)
|
|
270
270
|
)
|
|
271
271
|
return func
|
|
@@ -686,7 +686,7 @@ class BandsWidget(_ThemedFigureInteract):
|
|
|
686
686
|
traitlets.dlink((self.params.fig,'clicked'),(self, 'clicked_data'))
|
|
687
687
|
traitlets.dlink((self.params.fig,'selected'),(self, 'selected_data'))
|
|
688
688
|
|
|
689
|
-
self.
|
|
689
|
+
self.set_layout(
|
|
690
690
|
left_sidebar=[
|
|
691
691
|
'head','file','krange','kticks','brange', 'ppicks',
|
|
692
692
|
[HBox(),('theme','button')], 'kb_fig',
|
|
@@ -960,7 +960,7 @@ class KPathWidget(_ThemedFigureInteract):
|
|
|
960
960
|
traitlets.dlink((self.params.file,'value'),(self, 'file')) # update file trait
|
|
961
961
|
|
|
962
962
|
btns = [HBox(layout=Layout(min_height="24px")),('lock','delp', 'theme')]
|
|
963
|
-
self.
|
|
963
|
+
self.set_layout(
|
|
964
964
|
left_sidebar=['head','file',btns, 'info', 'sm','out-kpt','kpt', 'out-lab', 'lab'],
|
|
965
965
|
center=['fig'], footer = [c for c in self.groups.outputs if not c in ('out-lab','out-kpt')],
|
|
966
966
|
pane_widths=['25em',1,0], pane_heights=[0,1,0], # footer only has uselessoutputs
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.0.2"
|
|
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
|