ipyvasp 0.9.95__tar.gz → 0.9.96__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-0.9.95 → ipyvasp-0.9.96}/PKG-INFO +5 -1
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/README.md +4 -0
- ipyvasp-0.9.96/ipyvasp/_version.py +1 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/widgets.py +16 -19
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/PKG-INFO +5 -1
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/setup.py +13 -0
- ipyvasp-0.9.95/ipyvasp/_version.py +0 -1
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/LICENSE +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/__init__.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/__main__.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/_enplots.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/_lattice.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/bsdos.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/cli.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/core/__init__.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/core/parser.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/core/plot_toolkit.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/core/serializer.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/core/spatial_toolkit.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/evals_dataframe.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/lattice.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/misc.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/potential.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/utils.py +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/SOURCES.txt +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/dependency_links.txt +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/entry_points.txt +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/requires.txt +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/top_level.txt +0 -0
- {ipyvasp-0.9.95 → ipyvasp-0.9.96}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipyvasp
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.96
|
|
4
4
|
Summary: A processing tool for VASP DFT input/output processing in Jupyter Notebook.
|
|
5
5
|
Home-page: https://github.com/massgh/ipyvasp
|
|
6
6
|
Author: Abdul Saboor
|
|
@@ -46,6 +46,10 @@ cd ipyvasp
|
|
|
46
46
|
pip install -e .
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
+
## Documentataion
|
|
50
|
+
- [Latest at Github Pages](https://asaboor-gh.github.io/ipyvasp/)
|
|
51
|
+
- [Read the Docs](https://ipyvasp.readthedocs.io/)
|
|
52
|
+
|
|
49
53
|
## Showcase Examples
|
|
50
54
|
Plot 2D BZ layer on top of 3D!
|
|
51
55
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.9.96"
|
|
@@ -620,15 +620,14 @@ class _ThemedFigureInteract(ei.InteractBase):
|
|
|
620
620
|
self.set_css() # automatically sets dark/light, ensure after icon set
|
|
621
621
|
fig.layout.autosize = True # must
|
|
622
622
|
|
|
623
|
-
|
|
624
|
-
def set_css(self, main=None, center=None):
|
|
623
|
+
def _set_css(self, main=None, center=None): # allowed overriding, but not set_css
|
|
625
624
|
# This is after setting icon above, so logic is fliipped
|
|
626
625
|
style = _get_css("light" if self._theme.icon == 'sun' else 'dark') # infer from icon to match
|
|
627
626
|
if isinstance(main, dict):
|
|
628
627
|
style = {**style, **main} # main should allow override
|
|
629
628
|
elif main is not None:
|
|
630
629
|
raise TypeError("main must be a dict or None, got: {}".format(type(main)))
|
|
631
|
-
super().
|
|
630
|
+
super()._set_css(style, center)
|
|
632
631
|
|
|
633
632
|
@property
|
|
634
633
|
def files(self):
|
|
@@ -1038,25 +1037,23 @@ class KPathWidget(_ThemedFigureInteract):
|
|
|
1038
1037
|
|
|
1039
1038
|
@ei.callback
|
|
1040
1039
|
def _update_theme(self, fig, theme):
|
|
1041
|
-
super()._update_theme(fig, theme)
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
@ei.callback
|
|
1045
|
-
def _toggle_lock(self, lock):
|
|
1046
|
-
self.params.lock.icon = 'lock' if self.params.lock.icon == 'unlock' else 'unlock'
|
|
1047
|
-
self._show_info(f"{self.params.lock.icon}ed adding/deleting kpoints!")
|
|
1040
|
+
return super()._update_theme(fig, theme)
|
|
1048
1041
|
|
|
1049
1042
|
@ei.callback
|
|
1050
|
-
def
|
|
1051
|
-
if
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1043
|
+
def _respond_click(self, lock, delp):
|
|
1044
|
+
if lock.clicked:
|
|
1045
|
+
self.params.lock.icon = 'lock' if self.params.lock.icon == 'unlock' else 'unlock'
|
|
1046
|
+
self._show_info(f"{self.params.lock.icon}ed adding/deleting kpoints!")
|
|
1047
|
+
elif delp.clicked:
|
|
1048
|
+
if self.params.lock.icon == 'unlock': # Do not delete locked
|
|
1049
|
+
sm = self.params.sm
|
|
1050
|
+
for v in sm.value: # for loop here is important to update selection properly
|
|
1051
|
+
sm.options = [opt for opt in sm.options if opt[1] != v]
|
|
1052
|
+
self._update_selection() # update plot as well
|
|
1053
|
+
else:
|
|
1054
|
+
self._show_info("Select point(s) to delete")
|
|
1056
1055
|
else:
|
|
1057
|
-
self._show_info("
|
|
1058
|
-
else:
|
|
1059
|
-
self._show_info("cannot delete point when locked!", 'red')
|
|
1056
|
+
self._show_info("cannot delete point when locked!", 'red')
|
|
1060
1057
|
|
|
1061
1058
|
def _add_point(self, kpt):
|
|
1062
1059
|
sm = self.params.sm
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipyvasp
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.96
|
|
4
4
|
Summary: A processing tool for VASP DFT input/output processing in Jupyter Notebook.
|
|
5
5
|
Home-page: https://github.com/massgh/ipyvasp
|
|
6
6
|
Author: Abdul Saboor
|
|
@@ -46,6 +46,10 @@ cd ipyvasp
|
|
|
46
46
|
pip install -e .
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
+
## Documentataion
|
|
50
|
+
- [Latest at Github Pages](https://asaboor-gh.github.io/ipyvasp/)
|
|
51
|
+
- [Read the Docs](https://ipyvasp.readthedocs.io/)
|
|
52
|
+
|
|
49
53
|
## Showcase Examples
|
|
50
54
|
Plot 2D BZ layer on top of 3D!
|
|
51
55
|
|
|
@@ -94,6 +94,18 @@ class UploadCommand(Command):
|
|
|
94
94
|
|
|
95
95
|
sys.exit()
|
|
96
96
|
|
|
97
|
+
class BuildDocsCommand(UploadCommand):
|
|
98
|
+
description = "Build docs using sphinx-build."
|
|
99
|
+
user_options = []
|
|
100
|
+
|
|
101
|
+
def run(self):
|
|
102
|
+
source = os.path.join(here, "docs","source")
|
|
103
|
+
build = os.path.join(here, "docs","build", "html")
|
|
104
|
+
os.makedirs(build, exist_ok=True)
|
|
105
|
+
ret = os.system(f"sphinx-build -b html {source} {build}")
|
|
106
|
+
if ret != 0:
|
|
107
|
+
raise RuntimeError("Sphinx docs build failed!")
|
|
108
|
+
print(f"✅ Documentation successfully built as {build}")
|
|
97
109
|
|
|
98
110
|
# Where the magic happens:
|
|
99
111
|
setup(
|
|
@@ -126,6 +138,7 @@ setup(
|
|
|
126
138
|
# $ setup.py publish support.
|
|
127
139
|
cmdclass={
|
|
128
140
|
"upload": UploadCommand,
|
|
141
|
+
"build_docs": BuildDocsCommand,
|
|
129
142
|
},
|
|
130
143
|
# for command line interface
|
|
131
144
|
entry_points={
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.9.95"
|
|
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
|