lavavu-osmesa 1.8.81__cp312-cp312-manylinux_2_28_x86_64.whl → 1.8.83__cp312-cp312-manylinux_2_28_x86_64.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.
- lavavu/_LavaVuPython.cpython-312-x86_64-linux-gnu.so +0 -0
- lavavu/html/webview.html +1 -1
- lavavu/lavavu.py +41 -22
- {lavavu_osmesa-1.8.81.dist-info → lavavu_osmesa-1.8.83.dist-info}/METADATA +2 -2
- {lavavu_osmesa-1.8.81.dist-info → lavavu_osmesa-1.8.83.dist-info}/RECORD +9 -9
- {lavavu_osmesa-1.8.81.dist-info → lavavu_osmesa-1.8.83.dist-info}/LICENSE.md +0 -0
- {lavavu_osmesa-1.8.81.dist-info → lavavu_osmesa-1.8.83.dist-info}/WHEEL +0 -0
- {lavavu_osmesa-1.8.81.dist-info → lavavu_osmesa-1.8.83.dist-info}/entry_points.txt +0 -0
- {lavavu_osmesa-1.8.81.dist-info → lavavu_osmesa-1.8.83.dist-info}/top_level.txt +0 -0
Binary file
|
lavavu/html/webview.html
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
|
28
28
|
<input id="fileinput" type="file" style="visibility:hidden" onchange="useFileInput(this)" />
|
29
29
|
|
30
|
-
<script async src="https://cdn.jsdelivr.net/gh/lavavu/lavavu.github.io@1.8.
|
30
|
+
<script async src="https://cdn.jsdelivr.net/gh/lavavu/lavavu.github.io@1.8.83/LavaVu-amalgamated.min.js"></script>
|
31
31
|
<!--script src="dat.gui.min.js"></script>
|
32
32
|
<script src="OK-min.js"></script>
|
33
33
|
|
lavavu/lavavu.py
CHANGED
@@ -4194,7 +4194,7 @@ class Viewer(dict):
|
|
4194
4194
|
|
4195
4195
|
try:
|
4196
4196
|
fn = self.app.video(filename, fps, resolution[0], resolution[1], start, end, quality, **kwargs)
|
4197
|
-
player(fn)
|
4197
|
+
player(fn, **kwargs)
|
4198
4198
|
except (Exception) as e:
|
4199
4199
|
print("Video output error: " + str(e))
|
4200
4200
|
pass
|
@@ -4402,7 +4402,7 @@ class Viewer(dict):
|
|
4402
4402
|
vdat = {}
|
4403
4403
|
if len(self.state["views"]) and self.state["views"][0]:
|
4404
4404
|
def copyview(dst, src):
|
4405
|
-
for key in ["translate", "rotate", "xyzrotate", "fov"]:
|
4405
|
+
for key in ["translate", "rotate", "xyzrotate", "fov", "focus"]:
|
4406
4406
|
if key in src:
|
4407
4407
|
dst[key] = copy.copy(src[key])
|
4408
4408
|
#Round down arrays to max 3 decimal places
|
@@ -5232,7 +5232,7 @@ class DrawData(object):
|
|
5232
5232
|
renderlist = [geomnames[value] for value in geomtypes if value == self.data.type]
|
5233
5233
|
return ' '.join(['DrawData("' + r + '")' for r in renderlist]) + ' ==> ' + str(self.available)
|
5234
5234
|
|
5235
|
-
def player(filename,
|
5235
|
+
def player(filename, params="controls autoplay loop", **kwargs):
|
5236
5236
|
"""
|
5237
5237
|
Shows a video inline within an ipython notebook.
|
5238
5238
|
If IPython is not running, just returns
|
@@ -5241,43 +5241,62 @@ def player(filename, width=None, height=None, params=""):
|
|
5241
5241
|
----------
|
5242
5242
|
filename : str
|
5243
5243
|
Path and name of the file to play
|
5244
|
-
width : int
|
5245
|
-
Fixed width of player window, otherwise will use video resolution
|
5246
|
-
height : int
|
5247
|
-
Fixed height of player window, otherwise will use video resolution
|
5248
5244
|
params : str
|
5249
|
-
|
5245
|
+
Additional html attributes for the video control, see:
|
5246
|
+
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
|
5247
|
+
**kwargs :
|
5248
|
+
width=W,height=H will set fixed size of player window
|
5249
|
+
See further player arguments at
|
5250
|
+
https://ipython.readthedocs.io/en/latest/api/generated/IPython.display.html#IPython.display.Video
|
5250
5251
|
"""
|
5251
5252
|
|
5252
5253
|
if is_notebook():
|
5253
|
-
from IPython.display import display,HTML,Video
|
5254
|
-
|
5255
|
-
|
5256
|
-
extra_params += ' width=' + str(width) + ' height=' + str(height)
|
5254
|
+
from IPython.display import display,HTML,Video,Javascript
|
5255
|
+
import uuid
|
5256
|
+
vid = 'video_' + str(uuid.uuid4())[:8]
|
5257
5257
|
|
5258
|
+
'''
|
5258
5259
|
def get_fn(filename):
|
5259
5260
|
import os
|
5261
|
+
#This is unreliable, path incorrect on NCI
|
5260
5262
|
nbpath = os.getenv('JPY_SESSION_NAME')
|
5261
5263
|
if nbpath is not None:
|
5262
5264
|
import os.path
|
5263
|
-
relpath = os.path.relpath(os.getcwd(), start=nbpath)
|
5265
|
+
relpath = os.path.relpath(os.getcwd(), start=os.path.dirname(nbpath))
|
5264
5266
|
return relpath + '/' + filename
|
5265
5267
|
return filename
|
5268
|
+
''';
|
5266
5269
|
|
5267
5270
|
import uuid
|
5268
5271
|
uid = uuid.uuid1()
|
5269
|
-
filename_rel = get_fn(filename)
|
5270
5272
|
|
5271
|
-
|
5272
|
-
|
5273
|
-
#<video controls loop {extra_params}>
|
5274
|
-
# <source src="{filename_rel}">
|
5275
|
-
#Sorry, your browser doesn't support embedded videos
|
5276
|
-
#</video><br>
|
5277
|
-
#"""))
|
5273
|
+
#Embed player
|
5274
|
+
display(Video(url=filename, html_attributes=f"id='{vid}' " + params, **kwargs))
|
5278
5275
|
|
5279
5276
|
#Add download link
|
5280
|
-
display(HTML('<a href="{
|
5277
|
+
display(HTML(f'<a id="link_{vid}" href="{filename}" download>Download Video</a>'))
|
5278
|
+
|
5279
|
+
# Fallback - replace url on gadi and similar jupyterhub installs with
|
5280
|
+
# fixed working directory that doesn't match notebook dir
|
5281
|
+
# check the video tag url and remove subpath on 404 error
|
5282
|
+
display(Javascript(f"""
|
5283
|
+
let el = document.getElementById('{vid}');
|
5284
|
+
let url = el.src;
|
5285
|
+
fetch(url, {{method: 'HEAD'}}).then(response=>{{
|
5286
|
+
if(response.status == 404) {{
|
5287
|
+
console.log("Bad video url: " + url);
|
5288
|
+
let toppath = "/files/home/"
|
5289
|
+
let baseurl = url.substring(0, url.indexOf(toppath)+toppath.length);
|
5290
|
+
let endurl = url.substring(url.indexOf("{filename}"));
|
5291
|
+
let fixed = baseurl + endurl;
|
5292
|
+
console.log("Replaced video url: " + fixed);
|
5293
|
+
el.src = fixed;
|
5294
|
+
//Also fix download link
|
5295
|
+
document.getElementById('link_{vid}').href = fixed;
|
5296
|
+
}}
|
5297
|
+
}});
|
5298
|
+
"""))
|
5299
|
+
|
5281
5300
|
|
5282
5301
|
#Class for managing video animation recording
|
5283
5302
|
class Video(object):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lavavu-osmesa
|
3
|
-
Version: 1.8.
|
3
|
+
Version: 1.8.83
|
4
4
|
Summary: Python interface to LavaVu OpenGL 3D scientific visualisation utilities
|
5
5
|
Author-email: Owen Kaluza <owen@kaluza.id.au>
|
6
6
|
License: ### Licensing
|
@@ -221,7 +221,7 @@ Requires-Dist: jupyter-server-proxy
|
|
221
221
|
[](https://github.com/lavavu/LavaVu/actions?query=workflow:Test)
|
222
222
|
[](https://github.com/lavavu/LavaVu/actions?query=workflow:Deploy)
|
223
223
|
[](https://zenodo.org/badge/latestdoi/45163055)
|
224
|
-
[](https://mybinder.org/v2/gh/lavavu/LavaVu/1.8.
|
224
|
+
[](https://mybinder.org/v2/gh/lavavu/LavaVu/1.8.83)
|
225
225
|
|
226
226
|
A scientific visualisation tool with a python interface for fast and flexible visual analysis.
|
227
227
|
|
@@ -1,9 +1,3 @@
|
|
1
|
-
lavavu_osmesa-1.8.81.dist-info/top_level.txt,sha256=JptS0k1nlBumjLs_0hITr3_XUJhxqvKBXD2jGho3E3A,7
|
2
|
-
lavavu_osmesa-1.8.81.dist-info/RECORD,,
|
3
|
-
lavavu_osmesa-1.8.81.dist-info/entry_points.txt,sha256=LC2qXR6EMe45Cb7zGAF99R9HFrAECP6Qkp_YuG6HZB0,44
|
4
|
-
lavavu_osmesa-1.8.81.dist-info/LICENSE.md,sha256=EhfNgC6BYh5gDEaq4tcrN3S0wbO4CtJO46botJnCF8c,8603
|
5
|
-
lavavu_osmesa-1.8.81.dist-info/METADATA,sha256=0AGMy35QtwKh_TQgybtGdDQ1xlwXRbZs2CoWk3jwQ0U,18244
|
6
|
-
lavavu_osmesa-1.8.81.dist-info/WHEEL,sha256=I6KvajLS7GwIo-WUCQH51Kpa8y0Bm3XPMvZbVWftwTQ,113
|
7
1
|
lavavu_osmesa.libs/libglapi-d9260dde.so.0.0.0,sha256=lk2-KJ-TfqKogN82K9yu6G_StS6MtPDFNP7dN1CZSjo,247921
|
8
2
|
lavavu_osmesa.libs/libdrm-b0291a67.so.2.4.0,sha256=K48ZAlNAuvSdX7i2toETxCm6886w4E17JmP2c8RM2-0,96417
|
9
3
|
lavavu_osmesa.libs/libavformat-2c4b075e.so.61.9.100,sha256=FscWR6X-KZVOGGZHqilkHwwOUdlxYtPztWaIfmLP5Yc,2702745
|
@@ -23,17 +17,23 @@ lavavu_osmesa.libs/libswresample-0ba304d7.so.5.4.100,sha256=i6FYI2DuKjgjVxmbqNm2
|
|
23
17
|
lavavu_osmesa.libs/libselinux-64a010fa.so.1,sha256=dNJwuKqYp8fwkmrQ9hom3hVQ-lYUkNxxHb4vmrk8zmE,195097
|
24
18
|
lavavu_osmesa.libs/libffi-3a37023a.so.6.0.2,sha256=Q1Rq1XplFBXNFHvg92SNmTgQ0T6E9wmcqZcgOZ7DgLE,42489
|
25
19
|
lavavu_osmesa.libs/libavcodec-c07e82e9.so.61.24.100,sha256=xMKCq1bFKmc36ShXE1AXmXVVJbxHjQiZo1O-nmDPwvs,15042481
|
20
|
+
lavavu_osmesa-1.8.83.dist-info/top_level.txt,sha256=JptS0k1nlBumjLs_0hITr3_XUJhxqvKBXD2jGho3E3A,7
|
21
|
+
lavavu_osmesa-1.8.83.dist-info/RECORD,,
|
22
|
+
lavavu_osmesa-1.8.83.dist-info/entry_points.txt,sha256=LC2qXR6EMe45Cb7zGAF99R9HFrAECP6Qkp_YuG6HZB0,44
|
23
|
+
lavavu_osmesa-1.8.83.dist-info/LICENSE.md,sha256=EhfNgC6BYh5gDEaq4tcrN3S0wbO4CtJO46botJnCF8c,8603
|
24
|
+
lavavu_osmesa-1.8.83.dist-info/METADATA,sha256=XMUGgi2BeXUbsU5Ju-agHXvzXiFSxVT_SIUqJ__UN3M,18244
|
25
|
+
lavavu_osmesa-1.8.83.dist-info/WHEEL,sha256=I6KvajLS7GwIo-WUCQH51Kpa8y0Bm3XPMvZbVWftwTQ,113
|
26
26
|
lavavu/server.py,sha256=L-_yPCbNfwYxJCPjDQtr_lxPnDp4oMNVFyxXhBERYrQ,12468
|
27
27
|
lavavu/LavaVuPython.py,sha256=ixhceiAr0gGGfCe3d2cY0IIgS4hbgoYJGa_RfgAmmrU,33207
|
28
28
|
lavavu/amalgamate.py,sha256=Xloq1IZ4VUvYiROzQtwKcQIWC65c7EZrdiGVhZdolL8,586
|
29
|
-
lavavu/_LavaVuPython.cpython-312-x86_64-linux-gnu.so,sha256=
|
29
|
+
lavavu/_LavaVuPython.cpython-312-x86_64-linux-gnu.so,sha256=NPNKqfcgl0xf3RtQXUi1_YNzqavS_mPztpebwGZKqu4,76882857
|
30
30
|
lavavu/__init__.py,sha256=JroZQiUbuVN7ifixk2zNDGlyLGaM8bqfRbw4D_F9qIQ,191
|
31
31
|
lavavu/vutils.py,sha256=6Vm_xl1bp9mWlfk7jgLDwbRw-tdE_oxin77YkLel3_4,5437
|
32
32
|
lavavu/aserver.py,sha256=SfFvLeDTcx1XtS8fY_HIrDmh3q9HicCBRSAriY5yyOE,12003
|
33
33
|
lavavu/points.py,sha256=jRRtA6CrcA46Y2jUJmkxnIiVoMC5a14xEd_ojhmjhz4,5871
|
34
34
|
lavavu/tracers.py,sha256=0dB6v9Jg5G-IeZxiVFvbPoTycGvyAQBtgyEAZUmq4XU,4257
|
35
35
|
lavavu/dict.json,sha256=lsZEHc7Bb6_lt7tkSBQMgkq7AEn_2hnhWzzdokmvIY8,52729
|
36
|
-
lavavu/lavavu.py,sha256=
|
36
|
+
lavavu/lavavu.py,sha256=wBjlfDY-MTolGCigPS1bG3Z0ZEJMQjI5A8I2PtkRQS8,208226
|
37
37
|
lavavu/__main__.py,sha256=EbDetijCjyoiNxmExqnDGoRVs996tSVave5DML9zuMY,235
|
38
38
|
lavavu/font.bin,sha256=fvi5zkvmq6gh9v3jXedBVuxNJWKmHtbjECzv6eT9wb4,225360
|
39
39
|
lavavu/control.py,sha256=eNocZPc-2Dz-nSty_KRz_9RzLvbU0clJGuAV3qnzxbU,65841
|
@@ -57,7 +57,7 @@ lavavu/html/server.js,sha256=b5eNlWWbiEk90n3WARJ1Mh7lmfHM0pOtZfrrmM-wfyc,7099
|
|
57
57
|
lavavu/html/baseviewer.js,sha256=u3UhC1At6rMBKmcQ7d2DXTRxQ20wsQkc4lqA-7sL7i4,9567
|
58
58
|
lavavu/html/stats.min.js,sha256=iiwrLW4SUBhrzWrfW2VZP_9mowHX-Ks1EKORFv4EHdE,1965
|
59
59
|
lavavu/html/LavaVu-amalgamated.css,sha256=iE2xrxFcwmY0AcASrXxNa_RpvFEbS_YO4H5OILbPteE,8640
|
60
|
-
lavavu/html/webview.html,sha256=
|
60
|
+
lavavu/html/webview.html,sha256=_kNxQCpgMOijm1yV66Wua3_Tu6txvaUVyCllKIaITds,1522
|
61
61
|
lavavu/shaders/default.frag,sha256=xCkYz8QriRlnAr-NtenZSIWI_liSxv9jz3Lp5immK9k,258
|
62
62
|
lavavu/shaders/lineShader.frag,sha256=aCmOWC20fHinR32p6LZPdCZP6abn-K1V2slbJ_5NoVA,945
|
63
63
|
lavavu/shaders/volumeShader.vert,sha256=uGdQjGqi7V5kE6V7nxymfugtU4cbf6u570xBy13RgmY,78
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|