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.
Files changed (30) hide show
  1. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/PKG-INFO +5 -1
  2. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/README.md +4 -0
  3. ipyvasp-0.9.96/ipyvasp/_version.py +1 -0
  4. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/widgets.py +16 -19
  5. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/PKG-INFO +5 -1
  6. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/setup.py +13 -0
  7. ipyvasp-0.9.95/ipyvasp/_version.py +0 -1
  8. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/LICENSE +0 -0
  9. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/__init__.py +0 -0
  10. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/__main__.py +0 -0
  11. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/_enplots.py +0 -0
  12. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/_lattice.py +0 -0
  13. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/bsdos.py +0 -0
  14. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/cli.py +0 -0
  15. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/core/__init__.py +0 -0
  16. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/core/parser.py +0 -0
  17. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/core/plot_toolkit.py +0 -0
  18. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/core/serializer.py +0 -0
  19. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/core/spatial_toolkit.py +0 -0
  20. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/evals_dataframe.py +0 -0
  21. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/lattice.py +0 -0
  22. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/misc.py +0 -0
  23. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/potential.py +0 -0
  24. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp/utils.py +0 -0
  25. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/SOURCES.txt +0 -0
  26. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/dependency_links.txt +0 -0
  27. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/entry_points.txt +0 -0
  28. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/requires.txt +0 -0
  29. {ipyvasp-0.9.95 → ipyvasp-0.9.96}/ipyvasp.egg-info/top_level.txt +0 -0
  30. {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.95
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
 
@@ -13,6 +13,10 @@ cd ipyvasp
13
13
  pip install -e .
14
14
  ```
15
15
 
16
+ ## Documentataion
17
+ - [Latest at Github Pages](https://asaboor-gh.github.io/ipyvasp/)
18
+ - [Read the Docs](https://ipyvasp.readthedocs.io/)
19
+
16
20
  ## Showcase Examples
17
21
  Plot 2D BZ layer on top of 3D!
18
22
 
@@ -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
- @_sub_doc(ei.InteractBase.set_css) # overriding to alway be able to set_css
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().set_css(style, center)
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) # call parent method, but important
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 _del_point(self, delp):
1051
- if self.params.lock.icon == 'unlock': # Do not delete locked
1052
- sm = self.params.sm
1053
- for v in sm.value: # for loop here is important to update selection properly
1054
- sm.options = [opt for opt in sm.options if opt[1] != v]
1055
- self._update_selection() # update plot as well
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("Select point(s) to delete")
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.95
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