lavavu 1.9.7__cp313-cp313-manylinux_2_28_x86_64.whl → 1.9.9__cp313-cp313-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/dict.json CHANGED
@@ -2147,6 +2147,17 @@
2147
2147
  false
2148
2148
  ]
2149
2149
  },
2150
+ "upscalelines": {
2151
+ "default": false,
2152
+ "target": "global",
2153
+ "type": "real",
2154
+ "desc": "Enable to scale lines with the viewport size.",
2155
+ "strict": true,
2156
+ "redraw": 0,
2157
+ "control": [
2158
+ true
2159
+ ]
2160
+ },
2150
2161
  "fps": {
2151
2162
  "default": false,
2152
2163
  "target": "global",
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.9.7/LavaVu-amalgamated.min.js"></script>
30
+ <script async src="https://cdn.jsdelivr.net/gh/lavavu/lavavu.github.io@1.9.9/LavaVu-amalgamated.min.js"></script>
31
31
  <!--script src="dat.gui.min.js"></script>
32
32
  <script src="OK-min.js"></script>
33
33
 
@@ -8,7 +8,6 @@ uniform mat4 uMVMatrix;
8
8
  uniform mat4 uPMatrix;
9
9
  uniform mat4 uNMatrix;
10
10
 
11
- uniform vec4 uColour;
12
11
  uniform vec4 uLightPos;
13
12
 
14
13
  out vec4 vColour;
@@ -26,11 +25,10 @@ void main(void)
26
25
 
27
26
  vNormal = normalize(mat3(uNMatrix) * aVertexNormal);
28
27
 
29
- if (uColour.a > 0.0)
30
- vColour = uColour;
31
- else
32
- vColour = aVertexColour;
33
-
28
+ //This shader only applies attribute colour
29
+ //uColour is set for other/custom shaders
30
+ //Note uOpacity is "alpha" prop, "oapcity" is passed via attrib
31
+ vColour = aVertexColour;
34
32
  vTexCoord = aVertexTexCoord;
35
33
  vFlatColour = vColour;
36
34
  vVertex = aVertexPosition;
lavavu/tracers.py CHANGED
@@ -24,7 +24,7 @@ def random_particles(count, lowerbound=[0,0,0], upperbound=[1,1,1], dims=3):
24
24
  return numpy.stack(p).T
25
25
 
26
26
  class Tracers():
27
- def __init__(self, grid, count=1000, lowerbound=None, upperbound=None, limit=None, age=4, respawn_chance=0.2, speed_multiply=1.0, height=0.0, viewer=None):
27
+ def __init__(self, grid, count=1000, lowerbound=None, upperbound=None, limit=None, age=4, respawn_chance=0.2, speed_multiply=1.0, height=0.0, label='', viewer=None):
28
28
  """
29
29
  Seed random particles into a vector field and trace their positions
30
30
 
@@ -52,6 +52,8 @@ class Tracers():
52
52
  Speed multiplier, scaling factor for the velocity taken from the vector values
53
53
  height : float
54
54
  A fixed height value, all positions will be given this height as their Z component
55
+ label : str
56
+ Name label prefix for the visualisation objects when plotting
55
57
  viewer : lavavu.Viewer
56
58
  Viewer object for plotting functions
57
59
  """
@@ -100,6 +102,7 @@ class Tracers():
100
102
  self.speed_multiply = speed_multiply
101
103
  self.height = height
102
104
 
105
+ self.label = label
103
106
  self.lv = viewer
104
107
  self.points = None
105
108
  self.arrows = None
@@ -157,8 +160,8 @@ class Tracers():
157
160
  self.speed[r] = 0.0
158
161
 
159
162
  if self.lv:
160
- positions = self.positions
161
- if self.dims == 2 and self.height != 0:
163
+ positions = self.get_positions()
164
+ if positions.shape[1] == 2 and self.height != 0:
162
165
  #Convert to 3d and set z coord to height
163
166
  shape = list(positions.shape)
164
167
  shape[-1] = 3
@@ -180,15 +183,25 @@ class Tracers():
180
183
  if len(self.tracers["colourmap"]):
181
184
  self.tracers.values(self.speed)
182
185
 
186
+ def get_positions(self):
187
+ """
188
+ This funcion can be overridden if positions need to be transformed
189
+ in any way before plotting, eg: plotting on spherical earth model
190
+ """
191
+ return self.positions
192
+
193
+ def prefix(self):
194
+ return self.label + '_' if len(self.label) else ''
195
+
183
196
  def plot_points(self, **kwargs):
184
197
  if self.lv is not None and self.points is None:
185
- self.points = self.lv.points('tracer_points', **kwargs)
198
+ self.points = self.lv.points(self.prefix() + 'tracer_points', **kwargs)
186
199
 
187
200
  def plot_arrows(self, **kwargs):
188
201
  if self.lv is not None and self.arrows is None:
189
- self.arrows = self.lv.vectors('tracer_arrows', **kwargs)
202
+ self.arrows = self.lv.vectors(self.prefix() + 'tracer_arrows', **kwargs)
190
203
 
191
204
  def plot_tracers(self, **kwargs):
192
205
  if self.lv is not None and self.tracers is None:
193
- self.tracers = self.lv.tracers('tracers', dims=self.count, limit=self.limit, **kwargs)
206
+ self.tracers = self.lv.tracers(self.prefix() + 'tracers', dims=self.count, limit=self.limit, **kwargs)
194
207
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lavavu
3
- Version: 1.9.7
3
+ Version: 1.9.9
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
@@ -224,7 +224,7 @@ Dynamic: license-file
224
224
  [![Build Status](https://github.com/lavavu/LavaVu/workflows/Test/badge.svg)](https://github.com/lavavu/LavaVu/actions?query=workflow:Test)
225
225
  [![Deploy Status](https://github.com/lavavu/LavaVu/workflows/Deploy/badge.svg?branch=1.7.3)](https://github.com/lavavu/LavaVu/actions?query=workflow:Deploy)
226
226
  [![DOI](https://zenodo.org/badge/45163055.svg)](https://zenodo.org/badge/latestdoi/45163055)
227
- [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lavavu/LavaVu/1.9.7)
227
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lavavu/LavaVu/1.9.9)
228
228
 
229
229
  A scientific visualisation tool with a python interface for fast and flexible visual analysis.
230
230
 
@@ -1,17 +1,17 @@
1
1
  lavavu/LavaVuPython.py,sha256=ixhceiAr0gGGfCe3d2cY0IIgS4hbgoYJGa_RfgAmmrU,33207
2
- lavavu/_LavaVuPython.cpython-313-x86_64-linux-gnu.so,sha256=yBn2hw_YCm0yLYF1EHysB7SvT5wMi3dcvuolTLvbM8U,73628648
2
+ lavavu/_LavaVuPython.cpython-313-x86_64-linux-gnu.so,sha256=pGASthjt0wEGbypB_YI9u9uTOtJwgGLnkcEKFIpUOAY,73650568
3
3
  lavavu/__init__.py,sha256=JroZQiUbuVN7ifixk2zNDGlyLGaM8bqfRbw4D_F9qIQ,191
4
4
  lavavu/__main__.py,sha256=EbDetijCjyoiNxmExqnDGoRVs996tSVave5DML9zuMY,235
5
5
  lavavu/amalgamate.py,sha256=Xloq1IZ4VUvYiROzQtwKcQIWC65c7EZrdiGVhZdolL8,586
6
6
  lavavu/aserver.py,sha256=SfFvLeDTcx1XtS8fY_HIrDmh3q9HicCBRSAriY5yyOE,12003
7
7
  lavavu/control.py,sha256=s32rtLPXXYtxpeXd6-iHdupmaMTJ3KhK6Vq-CLjf9OQ,66755
8
8
  lavavu/convert.py,sha256=tbYRjLE2l1hI4d6tsW41Lia1JXmrWSc0-JAYCiMrjys,35516
9
- lavavu/dict.json,sha256=lsZEHc7Bb6_lt7tkSBQMgkq7AEn_2hnhWzzdokmvIY8,52729
9
+ lavavu/dict.json,sha256=EcJsoHsiHDDmM8FGuBRF6eOG2nMr-Pda3sxE6v6KB80,52952
10
10
  lavavu/font.bin,sha256=fvi5zkvmq6gh9v3jXedBVuxNJWKmHtbjECzv6eT9wb4,225360
11
11
  lavavu/lavavu.py,sha256=v7tXwp6gQzu1F05hHyALng8FXznv4rVwdCJ3sO65O8o,221223
12
12
  lavavu/points.py,sha256=jRRtA6CrcA46Y2jUJmkxnIiVoMC5a14xEd_ojhmjhz4,5871
13
13
  lavavu/server.py,sha256=L-_yPCbNfwYxJCPjDQtr_lxPnDp4oMNVFyxXhBERYrQ,12468
14
- lavavu/tracers.py,sha256=-NwdBAj5vYWmLt4NE0gWl36SQShQhICR7vBE4rzNOFI,8488
14
+ lavavu/tracers.py,sha256=e10H8evUH7V-XUSkHjfoakaA4SfeuQ8-gWzfa86RGzQ,8997
15
15
  lavavu/vutils.py,sha256=6Vm_xl1bp9mWlfk7jgLDwbRw-tdE_oxin77YkLel3_4,5437
16
16
  lavavu/html/LavaVu-amalgamated.css,sha256=iE2xrxFcwmY0AcASrXxNa_RpvFEbS_YO4H5OILbPteE,8640
17
17
  lavavu/html/OK-min.js,sha256=-4Gc1-dWfxP_w6r9ZOHa8u-X2BlGUoSQbX68lwCxQ3E,39115
@@ -32,9 +32,8 @@ lavavu/html/server.js,sha256=b5eNlWWbiEk90n3WARJ1Mh7lmfHM0pOtZfrrmM-wfyc,7099
32
32
  lavavu/html/stats.min.js,sha256=iiwrLW4SUBhrzWrfW2VZP_9mowHX-Ks1EKORFv4EHdE,1965
33
33
  lavavu/html/styles.css,sha256=68pH0fWIc0mP1puFbsIg0ET9G1ujd40Aiqfx4phuzjs,2983
34
34
  lavavu/html/webview-template.html,sha256=Mh9sOd6YEOiwJa_fPwyY4s9AdCuvsaHKLwVipVk_4Go,1530
35
- lavavu/html/webview.html,sha256=Tjv9TWx1k6ovHY8xxaG_NGwHwuiDC0Hz5Npm39afHAU,1521
35
+ lavavu/html/webview.html,sha256=18jUDdjnNH0GEJl377vZ-2tj9AUawj3lUbveleBkguM,1521
36
36
  lavavu/osmesa/LavaVuPython.py,sha256=ixhceiAr0gGGfCe3d2cY0IIgS4hbgoYJGa_RfgAmmrU,33207
37
- lavavu/osmesa/_LavaVuPython.cpython-313-x86_64-linux-gnu.so,sha256=Fl5rkBxx1sIuAy7Kg_UKNN3adwl0FxilS8IIDRymUC8,73928593
38
37
  lavavu/osmesa/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
38
  lavavu/shaders/default.frag,sha256=5XLYVfLwzN0sFT3aMYGmxbyquA_cmndp55YCOuy1t4E,180
40
39
  lavavu/shaders/default.vert,sha256=3xKybexF39UGsESMLQQcqHlE1MgLCDEXUMLz4sr5blQ,352
@@ -45,21 +44,12 @@ lavavu/shaders/lineShader.vert,sha256=5HDJMphXW438yMc0I2NtBdnvF6uXrOUac9hjk3S7mf
45
44
  lavavu/shaders/pointShader.frag,sha256=3zREBdsimlL9fAXBPjhzomGaFUWmlG_QYkhwMTVURHQ,3291
46
45
  lavavu/shaders/pointShader.vert,sha256=mDMF4wAPvHELXT5rXN_QZFezxvK4q50Mdm-qZZJ7FYI,1160
47
46
  lavavu/shaders/triShader.frag,sha256=SkPatq2s7Osa5o7U3lg-7We8ldY0oHZHCLuQjRY4Vgk,4601
48
- lavavu/shaders/triShader.vert,sha256=H7rTS-WO5QiT9uP1ClhufQM8minSWknJ9UvKAEVnzRU,1078
47
+ lavavu/shaders/triShader.vert,sha256=U_G_74Jybaw20-PI-NDgaLDDfxGhURHMxdvNYXEkBjc,1156
49
48
  lavavu/shaders/volumeShader.frag,sha256=Ajkpt0S2p0PpbQ2jygDnrymSgPMU2CG5xQT-dq2rr90,14194
50
49
  lavavu/shaders/volumeShader.vert,sha256=uGdQjGqi7V5kE6V7nxymfugtU4cbf6u570xBy13RgmY,78
51
- lavavu.libs/libLLVM-17-51492e70.so,sha256=s_fu2V3vueF5k7yndLsOoMFVm3WjR4z7BrEPBATtmV8,120758265
52
- lavavu.libs/libOSMesa-f6a8f160.so.8.0.0,sha256=ILVf-eVIwCmg-TeCVPhv9jBkdhDAmI__hg5Vabf_020,12991561
53
- lavavu.libs/libdrm-b0291a67.so.2.4.0,sha256=K48ZAlNAuvSdX7i2toETxCm6886w4E17JmP2c8RM2-0,96417
54
- lavavu.libs/libffi-3a37023a.so.6.0.2,sha256=Q1Rq1XplFBXNFHvg92SNmTgQ0T6E9wmcqZcgOZ7DgLE,42489
55
- lavavu.libs/libglapi-520b284c.so.0.0.0,sha256=utRBwf4eggMdlz4mFKS5ooG5BXU70LAu60NSAoN1XMk,247921
56
- lavavu.libs/libpcre2-8-516f4c9d.so.0.7.1,sha256=IcbljW_oKuAVlrAwKz8qtRZxfi1sQH_iKxPSoNpzsmU,547745
57
- lavavu.libs/libselinux-d0805dcb.so.1,sha256=iYGaLO-LIy5-WEihMiXHpeJUXyq56DDqGU49JbpfTu4,195097
58
- lavavu.libs/libtinfo-3a2cb85b.so.6.1,sha256=6Co83bxdB4J-rBU5l0p_7HpGlU46RG2EDnf-LpF5kBY,194041
59
- lavavu.libs/libzstd-76b78bac.so.1.4.4,sha256=F2-A6yQ3AA2N0vHZe-81OfEUOcwgjjWiOnYAxk2Kflc,686073
60
- lavavu-1.9.7.dist-info/METADATA,sha256=pDV89WKg6njzJArxsKbduk1rcj2NHSb75oV1lUtNx30,17877
61
- lavavu-1.9.7.dist-info/WHEEL,sha256=-u30hb3fvuhG6bBBJ1a1hHrzqhhvYjdDVHmxPVR_130,113
62
- lavavu-1.9.7.dist-info/entry_points.txt,sha256=LC2qXR6EMe45Cb7zGAF99R9HFrAECP6Qkp_YuG6HZB0,44
63
- lavavu-1.9.7.dist-info/top_level.txt,sha256=JptS0k1nlBumjLs_0hITr3_XUJhxqvKBXD2jGho3E3A,7
64
- lavavu-1.9.7.dist-info/RECORD,,
65
- lavavu-1.9.7.dist-info/licenses/LICENSE.md,sha256=EhfNgC6BYh5gDEaq4tcrN3S0wbO4CtJO46botJnCF8c,8603
50
+ lavavu-1.9.9.dist-info/METADATA,sha256=m26xD1S57nTm100gH36OwCwzJRRHuaiqk0Ai7ZQV7iY,17877
51
+ lavavu-1.9.9.dist-info/WHEEL,sha256=wj07yRGyNgfcgMSZOScoYkBkpidoeAzGSgCNSOVFG2E,113
52
+ lavavu-1.9.9.dist-info/entry_points.txt,sha256=LC2qXR6EMe45Cb7zGAF99R9HFrAECP6Qkp_YuG6HZB0,44
53
+ lavavu-1.9.9.dist-info/top_level.txt,sha256=JptS0k1nlBumjLs_0hITr3_XUJhxqvKBXD2jGho3E3A,7
54
+ lavavu-1.9.9.dist-info/RECORD,,
55
+ lavavu-1.9.9.dist-info/licenses/LICENSE.md,sha256=EhfNgC6BYh5gDEaq4tcrN3S0wbO4CtJO46botJnCF8c,8603
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.4.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp313-cp313-manylinux_2_28_x86_64
5
5
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file