wolfhece 2.0.14__py3-none-any.whl → 2.0.16__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.
- wolfhece/PyDraw.py +9 -9
- wolfhece/Results2DGPU.py +5 -1
- wolfhece/opengl/__init__.py +0 -0
- wolfhece/opengl/gl_utils.py +1544 -0
- wolfhece/opengl/py3d.py +1665 -0
- wolfhece/opengl/tile_packer.py +352 -0
- wolfhece/shaders/quad_frag_shader.glsl +6 -2
- wolfhece/shaders/quad_geom_shader.glsl +8 -3
- wolfhece/shaders/quadpos_frag_shader.glsl +12 -0
- wolfhece/shaders/quadpos_geom_shader.glsl +76 -0
- wolfhece/shaders/simple_fragment_shader.glsl +4 -1
- wolfhece/wolf_array.py +9 -5
- wolfhece/wolfresults_2D.py +14 -12
- {wolfhece-2.0.14.dist-info → wolfhece-2.0.16.dist-info}/METADATA +3 -1
- {wolfhece-2.0.14.dist-info → wolfhece-2.0.16.dist-info}/RECORD +18 -12
- {wolfhece-2.0.14.dist-info → wolfhece-2.0.16.dist-info}/WHEEL +0 -0
- {wolfhece-2.0.14.dist-info → wolfhece-2.0.16.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.0.14.dist-info → wolfhece-2.0.16.dist-info}/top_level.txt +0 -0
wolfhece/PyDraw.py
CHANGED
@@ -1251,7 +1251,7 @@ class WolfMapViewer(wx.Frame):
|
|
1251
1251
|
else:
|
1252
1252
|
logging.warning( "Can't open the clipboard", "Error")
|
1253
1253
|
|
1254
|
-
def get_mpl_plot(self, center = [0., 0.], width = 500., height = 500., title='', toshow=True) ->
|
1254
|
+
def get_mpl_plot(self, center = [0., 0.], width = 500., height = 500., title='', toshow=True) -> tuple[Figure, Axes]:
|
1255
1255
|
"""
|
1256
1256
|
Récupère un graphique matplotlib sur base de la fenêtre OpenGL et de la palette de la matrice active
|
1257
1257
|
"""
|
@@ -1793,15 +1793,15 @@ class WolfMapViewer(wx.Frame):
|
|
1793
1793
|
third.add_WMS()
|
1794
1794
|
|
1795
1795
|
# Création d'une liste contenant les 3 instances d'objet "WolfMapViewer"
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1796
|
+
mylist:list[WolfMapViewer] = []
|
1797
|
+
mylist.append(first)
|
1798
|
+
mylist.append(second)
|
1799
|
+
mylist.append(third)
|
1800
1800
|
|
1801
1801
|
# On indique que les objets sont liés en activant le Booléen et en pointant la liste précédente
|
1802
|
-
for curlist in
|
1802
|
+
for curlist in mylist:
|
1803
1803
|
curlist.linked = True
|
1804
|
-
curlist.linkedList =
|
1804
|
+
curlist.linkedList = mylist
|
1805
1805
|
|
1806
1806
|
if ListArrays is not None:
|
1807
1807
|
if len(ListArrays) == 2:
|
@@ -4036,7 +4036,7 @@ class WolfMapViewer(wx.Frame):
|
|
4036
4036
|
curarray:WolfArray
|
4037
4037
|
for curarray in self.myarrays:
|
4038
4038
|
if curarray.plotted:
|
4039
|
-
curarray.filter_inundation(bound)
|
4039
|
+
curarray.filter_inundation(epsilon = bound)
|
4040
4040
|
del wait
|
4041
4041
|
|
4042
4042
|
def export_results_as(self,which='geotiff'):
|
@@ -4986,7 +4986,7 @@ class WolfMapViewer(wx.Frame):
|
|
4986
4986
|
|
4987
4987
|
return [obj[i] for i in idx]
|
4988
4988
|
|
4989
|
-
def iterator_over_objects(self, drawing_type:draw_type, checked_state:bool=True)
|
4989
|
+
def iterator_over_objects(self, drawing_type:draw_type, checked_state:bool=True):
|
4990
4990
|
""" Create iterator over objects of type draw_type """
|
4991
4991
|
|
4992
4992
|
for obj in self.get_list_objects(drawing_type, checked_state):
|
wolfhece/Results2DGPU.py
CHANGED
@@ -254,7 +254,7 @@ class wolfres2DGPU(Wolfresults_2D):
|
|
254
254
|
curblock.rough_n = WolfArray(path.join(sim_path, 'simul.frot'))
|
255
255
|
|
256
256
|
elif path.exists(path.join(sim_path, 'bathymetry.npy')):
|
257
|
-
curblock.top = WolfArray(path.join(sim_path, 'bathymetry.npy')
|
257
|
+
curblock.top = WolfArray(path.join(sim_path, 'bathymetry.npy'))
|
258
258
|
curblock.waterdepth = WolfArray(path.join(sim_path, 'h.npy'))
|
259
259
|
curblock.qx = WolfArray(path.join(sim_path, 'qx.npy'))
|
260
260
|
curblock.qy = WolfArray(path.join(sim_path, 'qy.npy'))
|
@@ -279,6 +279,10 @@ class wolfres2DGPU(Wolfresults_2D):
|
|
279
279
|
except:
|
280
280
|
logging.error(_('No spatial position (base_coord_x,base_coord_y) in parameters.json -- Results will not be spatially based'))
|
281
281
|
|
282
|
+
# Force nullvalue to zero because it will influence the size of the arrow in vector field views
|
283
|
+
curblock.qx.nullvalue = 0.
|
284
|
+
curblock.qy.nullvalue = 0.
|
285
|
+
|
282
286
|
self.loaded_rough = True
|
283
287
|
|
284
288
|
self.head_blocks[getkeyblock(0)] = curblock.top.get_header()
|
File without changes
|