ipyvasp 0.8.5__py2.py3-none-any.whl → 0.8.6__py2.py3-none-any.whl
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/_version.py +1 -1
- ipyvasp/lattice.py +10 -5
- {ipyvasp-0.8.5.dist-info → ipyvasp-0.8.6.dist-info}/METADATA +1 -1
- {ipyvasp-0.8.5.dist-info → ipyvasp-0.8.6.dist-info}/RECORD +8 -8
- {ipyvasp-0.8.5.dist-info → ipyvasp-0.8.6.dist-info}/LICENSE +0 -0
- {ipyvasp-0.8.5.dist-info → ipyvasp-0.8.6.dist-info}/WHEEL +0 -0
- {ipyvasp-0.8.5.dist-info → ipyvasp-0.8.6.dist-info}/entry_points.txt +0 -0
- {ipyvasp-0.8.5.dist-info → ipyvasp-0.8.6.dist-info}/top_level.txt +0 -0
ipyvasp/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.8.
|
|
1
|
+
__version__ = "0.8.6"
|
ipyvasp/lattice.py
CHANGED
|
@@ -136,9 +136,7 @@ def ngl_viewer(
|
|
|
136
136
|
|
|
137
137
|
# Only show equivalent sites if plotting cell, only shift origin otherwise
|
|
138
138
|
poscar = POSCAR( # don't change instance itself, make new one
|
|
139
|
-
data=plat._fix_sites(
|
|
140
|
-
poscar.data, eqv_sites=True if plot_cell else False, origin=origin
|
|
141
|
-
)
|
|
139
|
+
data=plat._fix_sites(poscar.data, eqv_sites=True if plot_cell else False, origin=origin)
|
|
142
140
|
)
|
|
143
141
|
|
|
144
142
|
_types = list(poscar.data.types.keys())
|
|
@@ -205,7 +203,8 @@ def weas_viewer(poscar,
|
|
|
205
203
|
colors=None,
|
|
206
204
|
bond_length=None,
|
|
207
205
|
model_style = 1,
|
|
208
|
-
plot_cell=True
|
|
206
|
+
plot_cell=True,
|
|
207
|
+
origin = (0,0,0)
|
|
209
208
|
):
|
|
210
209
|
"""
|
|
211
210
|
colors : list or str
|
|
@@ -221,15 +220,21 @@ def weas_viewer(poscar,
|
|
|
221
220
|
Length of bond in Angstrom. Auto calculated if not provides. Can be a dict like {'Fe-O':3.2,...} to specify bond length between specific types.
|
|
222
221
|
|
|
223
222
|
Returns a WeasWidget instance. You can use `.export_image`, `save_image` and other operations on it.
|
|
223
|
+
Read what you can do more with `WeasWidget` [here](https://weas-widget.readthedocs.io/en/latest/index.html).
|
|
224
224
|
"""
|
|
225
225
|
|
|
226
226
|
from weas_widget import WeasWidget
|
|
227
227
|
|
|
228
228
|
if len(poscar.data.positions) < 1:
|
|
229
229
|
raise ValueError("Need at least 1 atom!")
|
|
230
|
+
|
|
231
|
+
# Only show equivalent sites if plotting cell, only shift origin otherwise
|
|
232
|
+
poscar = POSCAR( # don't change instance itself, make new one
|
|
233
|
+
data=plat._fix_sites(poscar.data, eqv_sites=True if plot_cell else False, origin=origin)
|
|
234
|
+
)
|
|
230
235
|
|
|
231
236
|
w = WeasWidget(from_ase=poscar.to_ase())
|
|
232
|
-
w.avr.show_bonded_atoms = True
|
|
237
|
+
w.avr.show_bonded_atoms = False if plot_cell else True # plot_cell fix atoms itself
|
|
233
238
|
w.avr.model_style = model_style
|
|
234
239
|
w.avr.show_cell = plot_cell
|
|
235
240
|
|
|
@@ -2,11 +2,11 @@ ipyvasp/__init__.py,sha256=7o41i5eYlNKg1Hsv0DLNFZ81GilxB02IXAJN-QiJQi0,1420
|
|
|
2
2
|
ipyvasp/__main__.py,sha256=eJV1TZSiT8mC_VqAeksNnBI2I8mKMiPkEIlwikbtOjI,216
|
|
3
3
|
ipyvasp/_enplots.py,sha256=D38paN8zqZgluNAwmCwcocd7-_h_T0HTGolI1eBkDes,37484
|
|
4
4
|
ipyvasp/_lattice.py,sha256=-0Zo12xSPgwWy1TEPtrsX6iEBah6VhpH4GuZ7f98K8g,103373
|
|
5
|
-
ipyvasp/_version.py,sha256=
|
|
5
|
+
ipyvasp/_version.py,sha256=7wELFVirq7De70ypmqa09QF6v-b6qREPH4ww4_OHDrg,23
|
|
6
6
|
ipyvasp/bsdos.py,sha256=ZtQji-W11UdFFicAoWZjlqVhI5tqYu_jpKyPPWKkeeo,30634
|
|
7
7
|
ipyvasp/cli.py,sha256=aWFEVhNmnW8eSOp5uh95JaDwLQ9K9nlCQcbnOSuhWgw,6844
|
|
8
8
|
ipyvasp/evals_dataframe.py,sha256=-sqxK7LPV6sYDO_XXmZ80FznOaXTkVdbqJKKvTUtMak,20637
|
|
9
|
-
ipyvasp/lattice.py,sha256=
|
|
9
|
+
ipyvasp/lattice.py,sha256=QaLBQ3Qo-1TkX5iIfYEBW2vjBR1EjkKrYY5Mn8BVCpE,28914
|
|
10
10
|
ipyvasp/misc.py,sha256=SZJ_ePUR2-HEKYTEpDHVRVE7zpIQVTCjiuw0BCC9UTU,2349
|
|
11
11
|
ipyvasp/potential.py,sha256=tzA73c5lkp6ahLSJchMrU043-QWaOV0nIOUA7VMmfKQ,11408
|
|
12
12
|
ipyvasp/surface.py,sha256=MjE5oB0wW6Pca_C-xu8rN6OMH7lUEeNPNyM7Kz_Im-8,23766
|
|
@@ -17,9 +17,9 @@ ipyvasp/core/parser.py,sha256=C3CaZsJbPME_ttYlYy4DXeOdL7dnkXs-cHRwFZL6bio,38058
|
|
|
17
17
|
ipyvasp/core/plot_toolkit.py,sha256=cktbPZTJ4K0_6-vKYqtQ1xIIPZg-gHJY5793M9XoYQ0,35754
|
|
18
18
|
ipyvasp/core/serializer.py,sha256=OsnYhlwt8O6UeJQMKmjp1-hwRjhxiqobV6bybfDECUY,35777
|
|
19
19
|
ipyvasp/core/spatial_toolkit.py,sha256=8DBYTiBFWJ7OBKuvOPw7UoEVCyNjJhSW0OcudjYZvAw,14748
|
|
20
|
-
ipyvasp-0.8.
|
|
21
|
-
ipyvasp-0.8.
|
|
22
|
-
ipyvasp-0.8.
|
|
23
|
-
ipyvasp-0.8.
|
|
24
|
-
ipyvasp-0.8.
|
|
25
|
-
ipyvasp-0.8.
|
|
20
|
+
ipyvasp-0.8.6.dist-info/LICENSE,sha256=F3SO5RiAZOMfmMGf1KOuk2g_c4ObvuBJhd9iBLDgXoQ,1263
|
|
21
|
+
ipyvasp-0.8.6.dist-info/METADATA,sha256=YWCB-4vDEen-pd4fYsn2j-emR3YU-5Fb7bbWijN0gm8,2436
|
|
22
|
+
ipyvasp-0.8.6.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
|
|
23
|
+
ipyvasp-0.8.6.dist-info/entry_points.txt,sha256=C7m0Sjmr14wFjflCkWXLzr5N6-cQj8uJC9n82mUtzt8,44
|
|
24
|
+
ipyvasp-0.8.6.dist-info/top_level.txt,sha256=ftziWlMWu_1VpDP1sRTFrkfBnWxAi393HYDVu4wRhUk,8
|
|
25
|
+
ipyvasp-0.8.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|