ipyvasp 1.0.2__tar.gz → 1.0.3__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-1.0.2 → ipyvasp-1.0.3}/PKG-INFO +1 -1
  2. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/_lattice.py +2 -1
  3. ipyvasp-1.0.3/ipyvasp/_version.py +1 -0
  4. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/cli.py +1 -1
  5. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/core/plot_toolkit.py +3 -11
  6. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp.egg-info/PKG-INFO +1 -1
  7. ipyvasp-1.0.2/ipyvasp/_version.py +0 -1
  8. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/LICENSE +0 -0
  9. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/README.md +0 -0
  10. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/__init__.py +0 -0
  11. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/__main__.py +0 -0
  12. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/_enplots.py +0 -0
  13. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/bsdos.py +0 -0
  14. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/core/__init__.py +0 -0
  15. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/core/parser.py +0 -0
  16. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/core/serializer.py +0 -0
  17. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/core/spatial_toolkit.py +0 -0
  18. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/evals_dataframe.py +0 -0
  19. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/lattice.py +0 -0
  20. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/misc.py +0 -0
  21. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/potential.py +0 -0
  22. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/utils.py +0 -0
  23. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp/widgets.py +0 -0
  24. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp.egg-info/SOURCES.txt +0 -0
  25. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp.egg-info/dependency_links.txt +0 -0
  26. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp.egg-info/entry_points.txt +0 -0
  27. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp.egg-info/requires.txt +0 -0
  28. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/ipyvasp.egg-info/top_level.txt +0 -0
  29. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/setup.cfg +0 -0
  30. {ipyvasp-1.0.2 → ipyvasp-1.0.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ipyvasp
3
- Version: 1.0.2
3
+ Version: 1.0.3
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
@@ -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.strain`.
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.3"
@@ -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
- # Set display format only if the backend is the default inline backend.
36
- # This avoids interfering with other backends like 'ipympl' which are
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ipyvasp
3
- Version: 1.0.2
3
+ Version: 1.0.3
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
@@ -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