ipyvasp 0.9.99__tar.gz → 1.0.1__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.99 → ipyvasp-1.0.1}/PKG-INFO +6 -18
- ipyvasp-1.0.1/ipyvasp/_version.py +1 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/core/parser.py +2 -2
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/core/serializer.py +1 -1
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/utils.py +3 -3
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/widgets.py +11 -5
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp.egg-info/PKG-INFO +6 -18
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp.egg-info/entry_points.txt +1 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp.egg-info/requires.txt +7 -7
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/setup.py +10 -10
- ipyvasp-0.9.99/ipyvasp/_version.py +0 -1
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/LICENSE +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/README.md +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/__init__.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/__main__.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/_enplots.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/_lattice.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/bsdos.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/cli.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/core/__init__.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/core/plot_toolkit.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/core/spatial_toolkit.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/evals_dataframe.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/lattice.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/misc.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp/potential.py +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp.egg-info/SOURCES.txt +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp.egg-info/dependency_links.txt +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/ipyvasp.egg-info/top_level.txt +0 -0
- {ipyvasp-0.9.99 → ipyvasp-1.0.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipyvasp
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.1
|
|
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
|
|
@@ -8,28 +8,14 @@ Author-email: mass_qau@outlook.com
|
|
|
8
8
|
License: MIT
|
|
9
9
|
Project-URL: Bug Tracker, https://github.com/massgh/ipyvasp/issues
|
|
10
10
|
Keywords: Jupyter,Widgets,IPython,VASP,DFT
|
|
11
|
+
Platform: UNKNOWN
|
|
11
12
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
13
|
Classifier: Programming Language :: Python :: 3
|
|
13
14
|
Classifier: Operating System :: OS Independent
|
|
14
|
-
Requires-Python: >=3.
|
|
15
|
+
Requires-Python: >=3.9
|
|
15
16
|
Description-Content-Type: text/markdown
|
|
16
|
-
License-File: LICENSE
|
|
17
|
-
Requires-Dist: matplotlib==3.7.0
|
|
18
|
-
Requires-Dist: numpy==1.23.2
|
|
19
|
-
Requires-Dist: scipy==1.9.1
|
|
20
|
-
Requires-Dist: ipywidgets>=8.0.4
|
|
21
|
-
Requires-Dist: pillow>=9.3.0
|
|
22
|
-
Requires-Dist: pandas==1.4.4
|
|
23
|
-
Requires-Dist: plotly==6.0.1
|
|
24
|
-
Requires-Dist: requests==2.28.1
|
|
25
|
-
Requires-Dist: typer==0.9.0
|
|
26
|
-
Requires-Dist: einteract
|
|
27
|
-
Requires-Dist: sympy
|
|
28
17
|
Provides-Extra: extra
|
|
29
|
-
|
|
30
|
-
Requires-Dist: ipython>=8.7; extra == "extra"
|
|
31
|
-
Requires-Dist: ase>=3.22.1; extra == "extra"
|
|
32
|
-
Requires-Dist: nglview>=3.0.4; extra == "extra"
|
|
18
|
+
License-File: LICENSE
|
|
33
19
|
|
|
34
20
|
|
|
35
21
|
# IPyVASP
|
|
@@ -84,3 +70,5 @@ Apply operations on POSCAR and simultaneously view using plotly's `FigureWidget`
|
|
|
84
70
|
|
|
85
71
|

|
|
86
72
|
More coming soon! You can test these examples on [](https://mybinder.org/v2/gh/asaboor-gh/ipyvasp/HEAD?urlpath=%2Fdoc%2Ftree%2Fdocs%2Fsource%2Fnotebooks%2Fquickstart.ipynb).
|
|
73
|
+
|
|
74
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.0.1"
|
|
@@ -756,7 +756,7 @@ def gen2numpy(
|
|
|
756
756
|
for sli, N in zip(slices, shape)
|
|
757
757
|
]
|
|
758
758
|
)
|
|
759
|
-
count = int(np.
|
|
759
|
+
count = int(np.prod(new_shape)) # include columns here for overall data count.
|
|
760
760
|
|
|
761
761
|
# Process generator
|
|
762
762
|
if include:
|
|
@@ -768,7 +768,7 @@ def gen2numpy(
|
|
|
768
768
|
gen = (l for l in gen if l.strip()) # remove empty lines
|
|
769
769
|
|
|
770
770
|
gen = islice(
|
|
771
|
-
gen, 0, int(np.
|
|
771
|
+
gen, 0, int(np.prod(shape[:-1]))
|
|
772
772
|
) # Discard lines after required data
|
|
773
773
|
|
|
774
774
|
def fold_dim(gen, take, N):
|
|
@@ -438,7 +438,7 @@ class PoscarData(Dict2Data):
|
|
|
438
438
|
return np.min(dists) if dists.size else np.nan
|
|
439
439
|
|
|
440
440
|
|
|
441
|
-
def get_distances(self, type1, type2, min=-np.
|
|
441
|
+
def get_distances(self, type1, type2, min=-np.inf, max=np.inf):
|
|
442
442
|
"""Get an array of all distnaces in a range set by min and max between type 1 and type2.
|
|
443
443
|
For example `get_distances('Ga','As',2,3)[:,-1].mean()` can be used to get average bond length between Ga and As in GaAs.
|
|
444
444
|
Returned array is of shape (N,3) where first two entries in columns are indices of pairs between which distance was calculated.
|
|
@@ -459,8 +459,8 @@ RGB = LinearSegmentedColormap.from_list(
|
|
|
459
459
|
CMY = LinearSegmentedColormap.from_list(
|
|
460
460
|
"CMY", [(0, 0.9, 0.9), (0, 0, 0.9), (0.9, 0, 0.9), (0.9, 0, 0), (0.9, 0.9, 0)]
|
|
461
461
|
)
|
|
462
|
-
plt.
|
|
463
|
-
plt.
|
|
462
|
+
plt.colormaps.register(RGB, name="RGB", force=True)
|
|
463
|
+
plt.colormaps.register(CMY, name="CMY", force=True)
|
|
464
464
|
|
|
465
465
|
|
|
466
466
|
def create_colormap(name="RB", colors=[(0.9, 0, 0), (0, 0, 0.9)]):
|
|
@@ -477,5 +477,5 @@ def create_colormap(name="RB", colors=[(0.9, 0, 0), (0, 0, 0.9)]):
|
|
|
477
477
|
Colormap object which you can use to get colors from. like cm = create_colormap(); cm(0.5) which will return a color at center of map
|
|
478
478
|
"""
|
|
479
479
|
RB = LinearSegmentedColormap.from_list(name, colors)
|
|
480
|
-
plt.
|
|
480
|
+
plt.colormaps.register(RB, name=name, force=True)
|
|
481
481
|
return RB
|
|
@@ -105,11 +105,17 @@ class Files:
|
|
|
105
105
|
files_only : bool, if True, returns only files.
|
|
106
106
|
dirs_only : bool, if True, returns only directories.
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
Returns
|
|
109
|
+
-------
|
|
110
|
+
Files instance.
|
|
111
|
+
|
|
112
|
+
Notes
|
|
113
|
+
-----
|
|
114
|
+
Use methods on return such as ``summarize``, ``with_name``, ``filtered``, ``interact`` and others.
|
|
109
115
|
|
|
110
116
|
>>> Files(root_1, glob_1,...).add(root_2, glob_2,...) # Fully flexible to chain
|
|
111
117
|
|
|
112
|
-
WARNING
|
|
118
|
+
**WARNING**: Don't use write operations on paths in files in batch mode, it can cause unrecoverable data loss.
|
|
113
119
|
"""
|
|
114
120
|
def __init__(self, path_or_files = '.', glob = '*', exclude = None,files_only = False, dirs_only=False):
|
|
115
121
|
if isinstance(path_or_files, Files):
|
|
@@ -235,7 +241,7 @@ class Files:
|
|
|
235
241
|
def _unique(self, *files_tuples):
|
|
236
242
|
return tuple(np.unique(np.hstack(files_tuples)))
|
|
237
243
|
|
|
238
|
-
@_sub_doc(ei.interactive)
|
|
244
|
+
@_sub_doc(ei.interactive,{"ipyslides.interaction":"einteract"})
|
|
239
245
|
def interactive(self, *funcs, auto_update=True, app_layout=None, grid_css={},**kwargs):
|
|
240
246
|
if 'file' in kwargs:
|
|
241
247
|
raise KeyError("file is a reserved keyword argument to select path to file!")
|
|
@@ -255,7 +261,7 @@ class Files:
|
|
|
255
261
|
|
|
256
262
|
return ei.interactive(*funcs,auto_update=auto_update, app_layout = app_layout, grid_css=grid_css, file = self.to_dropdown(), **kwargs)
|
|
257
263
|
|
|
258
|
-
@_sub_doc(ei.interact)
|
|
264
|
+
@_sub_doc(ei.interact,{"ipyslides.interaction":"einteract"})
|
|
259
265
|
def interact(self, *funcs, auto_update=True, app_layout=None, grid_css={},**kwargs):
|
|
260
266
|
def inner(func):
|
|
261
267
|
display(self.interactive(func, *funcs,
|
|
@@ -812,7 +818,7 @@ class BandsWidget(_ThemedFigureInteract):
|
|
|
812
818
|
kmin, kmax = self.params.krange.value or [0,0]
|
|
813
819
|
kticks = [(int(vs[0]), vs[1])
|
|
814
820
|
for vs in hsk # We are going to pick kticks silently in given range
|
|
815
|
-
if len(vs) == 2 and abs(int(vs[0]))
|
|
821
|
+
if len(vs) == 2 and abs(int(vs[0])) <= (kmax - kmin) # handle negative indices too
|
|
816
822
|
] or None
|
|
817
823
|
|
|
818
824
|
_bands = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipyvasp
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.1
|
|
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
|
|
@@ -8,28 +8,14 @@ Author-email: mass_qau@outlook.com
|
|
|
8
8
|
License: MIT
|
|
9
9
|
Project-URL: Bug Tracker, https://github.com/massgh/ipyvasp/issues
|
|
10
10
|
Keywords: Jupyter,Widgets,IPython,VASP,DFT
|
|
11
|
+
Platform: UNKNOWN
|
|
11
12
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
13
|
Classifier: Programming Language :: Python :: 3
|
|
13
14
|
Classifier: Operating System :: OS Independent
|
|
14
|
-
Requires-Python: >=3.
|
|
15
|
+
Requires-Python: >=3.9
|
|
15
16
|
Description-Content-Type: text/markdown
|
|
16
|
-
License-File: LICENSE
|
|
17
|
-
Requires-Dist: matplotlib==3.7.0
|
|
18
|
-
Requires-Dist: numpy==1.23.2
|
|
19
|
-
Requires-Dist: scipy==1.9.1
|
|
20
|
-
Requires-Dist: ipywidgets>=8.0.4
|
|
21
|
-
Requires-Dist: pillow>=9.3.0
|
|
22
|
-
Requires-Dist: pandas==1.4.4
|
|
23
|
-
Requires-Dist: plotly==6.0.1
|
|
24
|
-
Requires-Dist: requests==2.28.1
|
|
25
|
-
Requires-Dist: typer==0.9.0
|
|
26
|
-
Requires-Dist: einteract
|
|
27
|
-
Requires-Dist: sympy
|
|
28
17
|
Provides-Extra: extra
|
|
29
|
-
|
|
30
|
-
Requires-Dist: ipython>=8.7; extra == "extra"
|
|
31
|
-
Requires-Dist: ase>=3.22.1; extra == "extra"
|
|
32
|
-
Requires-Dist: nglview>=3.0.4; extra == "extra"
|
|
18
|
+
License-File: LICENSE
|
|
33
19
|
|
|
34
20
|
|
|
35
21
|
# IPyVASP
|
|
@@ -84,3 +70,5 @@ Apply operations on POSCAR and simultaneously view using plotly's `FigureWidget`
|
|
|
84
70
|
|
|
85
71
|

|
|
86
72
|
More coming soon! You can test these examples on [](https://mybinder.org/v2/gh/asaboor-gh/ipyvasp/HEAD?urlpath=%2Fdoc%2Ftree%2Fdocs%2Fsource%2Fnotebooks%2Fquickstart.ipynb).
|
|
73
|
+
|
|
74
|
+
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
matplotlib
|
|
2
|
-
numpy
|
|
3
|
-
scipy
|
|
1
|
+
matplotlib>=3.7.5
|
|
2
|
+
numpy>=1.23.2
|
|
3
|
+
scipy>=1.9.1
|
|
4
4
|
ipywidgets>=8.0.4
|
|
5
5
|
pillow>=9.3.0
|
|
6
|
-
pandas
|
|
7
|
-
plotly
|
|
8
|
-
requests
|
|
9
|
-
typer
|
|
6
|
+
pandas>=1.4.4
|
|
7
|
+
plotly>=6.2.0
|
|
8
|
+
requests>=2.28.1
|
|
9
|
+
typer>=0.9.0
|
|
10
10
|
einteract
|
|
11
11
|
sympy
|
|
12
12
|
|
|
@@ -3,8 +3,8 @@ from shutil import rmtree
|
|
|
3
3
|
|
|
4
4
|
from setuptools import setup, Command, find_packages
|
|
5
5
|
|
|
6
|
-
if sys.version_info[:2] < (3,
|
|
7
|
-
sys.exit("Sorry, Python < 3.
|
|
6
|
+
if sys.version_info[:2] < (3, 9):
|
|
7
|
+
sys.exit("Sorry, Python < 3.9 is not supported for ipyvasp")
|
|
8
8
|
|
|
9
9
|
# Package meta-data.
|
|
10
10
|
NAME = "ipyvasp"
|
|
@@ -14,20 +14,20 @@ DESCRIPTION = (
|
|
|
14
14
|
URL = "https://github.com/massgh/ipyvasp"
|
|
15
15
|
EMAIL = "mass_qau@outlook.com"
|
|
16
16
|
AUTHOR = "Abdul Saboor"
|
|
17
|
-
REQUIRES_PYTHON = ">=3.
|
|
17
|
+
REQUIRES_PYTHON = ">=3.9"
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
# What packages are required for this module to be executed?
|
|
21
21
|
REQUIRED = [
|
|
22
|
-
"matplotlib
|
|
23
|
-
"numpy
|
|
24
|
-
"scipy
|
|
22
|
+
"matplotlib>=3.7.5",
|
|
23
|
+
"numpy>=1.23.2",
|
|
24
|
+
"scipy>=1.9.1",
|
|
25
25
|
"ipywidgets>=8.0.4",
|
|
26
26
|
"pillow>=9.3.0",
|
|
27
|
-
"pandas
|
|
28
|
-
"plotly
|
|
29
|
-
"requests
|
|
30
|
-
"typer
|
|
27
|
+
"pandas>=1.4.4",
|
|
28
|
+
"plotly>=6.2.0",
|
|
29
|
+
"requests>=2.28.1",
|
|
30
|
+
"typer>=0.9.0",
|
|
31
31
|
"einteract", # any latest version of einteract
|
|
32
32
|
"sympy",
|
|
33
33
|
]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.9.99"
|
|
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
|