wolfhece 2.1.81__py3-none-any.whl → 2.1.82__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 -6
- wolfhece/apps/version.py +1 -1
- wolfhece/gpuview.py +1 -0
- wolfhece/mesh2d/wolf2dprev.py +1 -2
- wolfhece/pyviews.py +25 -7
- wolfhece/wolf_array.py +19 -0
- wolfhece/wolfresults_2D.py +3 -30
- {wolfhece-2.1.81.dist-info → wolfhece-2.1.82.dist-info}/METADATA +1 -1
- {wolfhece-2.1.81.dist-info → wolfhece-2.1.82.dist-info}/RECORD +12 -12
- {wolfhece-2.1.81.dist-info → wolfhece-2.1.82.dist-info}/WHEEL +0 -0
- {wolfhece-2.1.81.dist-info → wolfhece-2.1.82.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.1.81.dist-info → wolfhece-2.1.82.dist-info}/top_level.txt +0 -0
wolfhece/PyDraw.py
CHANGED
@@ -9602,6 +9602,14 @@ class WolfMapViewer(wx.Frame):
|
|
9602
9602
|
|
9603
9603
|
return self.canvas.SetCurrent(self.context)
|
9604
9604
|
|
9605
|
+
def _set_gl_projection_matrix(self):
|
9606
|
+
glMatrixMode(GL_PROJECTION)
|
9607
|
+
glLoadIdentity()
|
9608
|
+
glOrtho(self.xmin, self.xmax, self.ymin, self.ymax, -99999, 99999)
|
9609
|
+
|
9610
|
+
glMatrixMode(GL_MODELVIEW)
|
9611
|
+
glLoadIdentity()
|
9612
|
+
|
9605
9613
|
def Paint(self):
|
9606
9614
|
""" Dessin des éléments ajoutés au viewer """
|
9607
9615
|
|
@@ -9626,12 +9634,7 @@ class WolfMapViewer(wx.Frame):
|
|
9626
9634
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
|
9627
9635
|
glViewport(0, 0, int(width), int(height))
|
9628
9636
|
|
9629
|
-
|
9630
|
-
glLoadIdentity()
|
9631
|
-
glOrtho(self.xmin, self.xmax, self.ymin, self.ymax, -99999, 99999)
|
9632
|
-
|
9633
|
-
glMatrixMode(GL_MODELVIEW)
|
9634
|
-
glLoadIdentity()
|
9637
|
+
self._set_gl_projection_matrix()
|
9635
9638
|
|
9636
9639
|
# dessin du background
|
9637
9640
|
self._plotting(draw_type.WMSBACK)
|
wolfhece/apps/version.py
CHANGED
wolfhece/gpuview.py
CHANGED
@@ -523,6 +523,7 @@ class VectorField(Element_To_Draw):
|
|
523
523
|
glMatrixMode(GL_PROJECTION)
|
524
524
|
# glPopMatrix()
|
525
525
|
# glLoadIdentity()
|
526
|
+
self.get_mapviewer()._set_gl_projection_matrix()
|
526
527
|
|
527
528
|
def _plot(self, projection_matrix):
|
528
529
|
assert self._gl_texture is not None, "Did you set the data ?"
|
wolfhece/mesh2d/wolf2dprev.py
CHANGED
@@ -9488,8 +9488,7 @@ class prev_sim2D():
|
|
9488
9488
|
""" Common mask for multiblock arrays """
|
9489
9489
|
|
9490
9490
|
if self.mymnap is not None:
|
9491
|
-
|
9492
|
-
return [cur.array.data != 1 for cur in self.mymnap.myblocks.values()]
|
9491
|
+
return self.mymnap.get_all_masks()
|
9493
9492
|
else:
|
9494
9493
|
return None
|
9495
9494
|
|
wolfhece/pyviews.py
CHANGED
@@ -27,15 +27,17 @@ class WolfViews(Element_To_Draw):
|
|
27
27
|
|
28
28
|
super().__init__(idx, plotted, mapviewer, need_for_wx)
|
29
29
|
|
30
|
-
self.view = []
|
31
|
-
self.pals = []
|
30
|
+
self.view = [] # list of elements to plot
|
31
|
+
self.pals = [] # list of palettes to use for the elements
|
32
|
+
self.fix = [] # list of boolean to fix some elements - avoid to delete OpenGL lists during "delete_lists"
|
32
33
|
|
33
34
|
def delete_lists(self):
|
34
35
|
""" Delete the lists of elements and palettes."""
|
35
36
|
|
36
|
-
for cur in self.view:
|
37
|
-
if
|
38
|
-
cur
|
37
|
+
for cur, fix in zip(self.view, self.fix):
|
38
|
+
if not fix:
|
39
|
+
if isinstance(cur, WolfArray) or isinstance(cur, WolfArrayMB):
|
40
|
+
cur.delete_lists()
|
39
41
|
|
40
42
|
def read_from_file(self, fn):
|
41
43
|
myproject = Wolf_Param(None, filename=fn, toShow=False)
|
@@ -181,7 +183,7 @@ class WolfViews(Element_To_Draw):
|
|
181
183
|
else:
|
182
184
|
cur.mapviewer = newmapviewer
|
183
185
|
|
184
|
-
def add_elemt(self, added_elemt, pal=None):
|
186
|
+
def add_elemt(self, added_elemt, pal= None, fix= False):
|
185
187
|
""" Add an element to the view.
|
186
188
|
|
187
189
|
:param added_elemt: Element to add.
|
@@ -192,8 +194,9 @@ class WolfViews(Element_To_Draw):
|
|
192
194
|
|
193
195
|
self.view.append(added_elemt)
|
194
196
|
self.pals.append(pal)
|
197
|
+
self.fix.append(fix)
|
195
198
|
|
196
|
-
def add_elemts(self, added_elemts: list, pals=None):
|
199
|
+
def add_elemts(self, added_elemts: list, pals=None, fixes=None):
|
197
200
|
""" Add a list of elements to the view.
|
198
201
|
|
199
202
|
:param added_elemts: List of elements to add.
|
@@ -220,6 +223,21 @@ class WolfViews(Element_To_Draw):
|
|
220
223
|
|
221
224
|
self.pals += pals
|
222
225
|
|
226
|
+
if fixes is None:
|
227
|
+
self.fix += [False]*len(added_elemts)
|
228
|
+
else:
|
229
|
+
if len(fixes) != len(added_elemts):
|
230
|
+
logging.warning('The number of fixes must be the same as the number of elements.')
|
231
|
+
|
232
|
+
if len(fixes) < len(added_elemts):
|
233
|
+
logging.warning('The missing fixes will be set to None.')
|
234
|
+
fixes += [False]*(len(added_elemts)-len(fixes))
|
235
|
+
else:
|
236
|
+
logging.warning('The extra fixes will be ignored.')
|
237
|
+
fixes = fixes[:len(added_elemts)]
|
238
|
+
|
239
|
+
self.fix += fixes
|
240
|
+
|
223
241
|
def plot(self, sx=None, sy=None, xmin=None, ymin=None, xmax=None, ymax=None, size=None):
|
224
242
|
""" Plot the view. """
|
225
243
|
|
wolfhece/wolf_array.py
CHANGED
@@ -10165,3 +10165,22 @@ class WolfArrayMNAP(WolfArrayMB):
|
|
10165
10165
|
|
10166
10166
|
# Imposition du type de stockage
|
10167
10167
|
self.wolftype = WOLF_ARRAY_MNAP_INTEGER
|
10168
|
+
|
10169
|
+
def get_one_mask(self, which:int | str):
|
10170
|
+
"""
|
10171
|
+
Return the mask of the block `which`
|
10172
|
+
"""
|
10173
|
+
|
10174
|
+
if isinstance(which, int):
|
10175
|
+
key = getkeyblock(which)
|
10176
|
+
else:
|
10177
|
+
key = which
|
10178
|
+
|
10179
|
+
return self.myblocks[key].array.data != 1
|
10180
|
+
|
10181
|
+
def get_all_masks(self):
|
10182
|
+
"""
|
10183
|
+
Return all masks
|
10184
|
+
"""
|
10185
|
+
|
10186
|
+
return [curblock.array.data != 1 for curblock in self.myblocks.values()]
|
wolfhece/wolfresults_2D.py
CHANGED
@@ -2278,7 +2278,7 @@ class Wolfresults_2D(Element_To_Draw):
|
|
2278
2278
|
""" Common mask for multiblock arrays """
|
2279
2279
|
|
2280
2280
|
if self.mymnap is not None:
|
2281
|
-
return
|
2281
|
+
return self.mymnap.get_all_masks()
|
2282
2282
|
else:
|
2283
2283
|
return None
|
2284
2284
|
|
@@ -4178,35 +4178,8 @@ class Wolfresults_2D(Element_To_Draw):
|
|
4178
4178
|
"""Dessin OpenGL"""
|
4179
4179
|
self.mimic_plotdata(True)
|
4180
4180
|
|
4181
|
-
|
4182
|
-
|
4183
|
-
# There is an issue with GPUVIEW
|
4184
|
-
if self.plotted:
|
4185
|
-
lists = []
|
4186
|
-
pals = []
|
4187
|
-
for i in range(len(self.myblocks[getkeyblock(0)]._view.view)):
|
4188
|
-
lists.append([cur._view.view[i] for cur in self.myblocks.values()])
|
4189
|
-
pals.append([cur._view.pals[i] for cur in self.myblocks.values()])
|
4190
|
-
|
4191
|
-
for curlist, curpal in zip(lists, pals):
|
4192
|
-
for cur, pal in zip(curlist, curpal):
|
4193
|
-
oldplotted = cur.plotted
|
4194
|
-
cur.plotted = True
|
4195
|
-
# force True even if not "plotted",
|
4196
|
-
# we must plot all the arrays in a complex view,
|
4197
|
-
# which can use some objects that are not plotted
|
4198
|
-
# as individual arrays (e.g. Topography)
|
4199
|
-
if pal is None:
|
4200
|
-
cur.plot(sx, sy,xmin,ymin,xmax,ymax,size)
|
4201
|
-
else:
|
4202
|
-
oldpal = cur.mypal
|
4203
|
-
cur.mypal = pal
|
4204
|
-
cur.plot(sx, sy,xmin,ymin,xmax,ymax,size)
|
4205
|
-
cur.mypal = oldpal
|
4206
|
-
cur.plotted = oldplotted
|
4207
|
-
else:
|
4208
|
-
for curblock in self.myblocks.values():
|
4209
|
-
curblock.plot(sx, sy,xmin,ymin,xmax,ymax)
|
4181
|
+
for curblock in self.myblocks.values():
|
4182
|
+
curblock.plot(sx, sy,xmin,ymin,xmax,ymax)
|
4210
4183
|
|
4211
4184
|
if self.myparam is not None:
|
4212
4185
|
#conditions limites faibles
|
@@ -7,7 +7,7 @@ wolfhece/ManageParams.py,sha256=EeuUI5Vvh9ixCvYf8YShMC1s1Yacc7OxOCN7q81gqiQ,517
|
|
7
7
|
wolfhece/Model1D.py,sha256=SI4oNF_J3MdjiWZoizS8kuRXLMVyymX9dYfYJNVCQVI,476989
|
8
8
|
wolfhece/PyConfig.py,sha256=FB8u0belXOXTb03Ln6RdVWvMgjzi3oGPCmw2dWa3lNg,8332
|
9
9
|
wolfhece/PyCrosssections.py,sha256=FnmM9DWY_SAF2EDH9Gu2PojXNtSTRF4-aYQuAAJXBh4,112771
|
10
|
-
wolfhece/PyDraw.py,sha256
|
10
|
+
wolfhece/PyDraw.py,sha256=-Qq81Eo4BDNDTinvjboJFY3gadWQNPyZER06sCtsPCw,422883
|
11
11
|
wolfhece/PyGui.py,sha256=HY0beOMSp1JEyq8-vfVynzVrmKxvaO_sJSMwlNqCNrg,105289
|
12
12
|
wolfhece/PyGuiHydrology.py,sha256=f60E8K9eGTnRq5RDF6yvt-ahf2AYegwQ9t25zZ2Mk1A,14946
|
13
13
|
wolfhece/PyHydrographs.py,sha256=jwtSNMMACwarxrtN1UeQYth99UNrhwPx1IGgUwcooHA,3774
|
@@ -30,7 +30,7 @@ wolfhece/color_constants.py,sha256=Snc5RX11Ydi756EkBp_83C7DiAQ_Z1aHD9jFIBsosAU,3
|
|
30
30
|
wolfhece/drawing_obj.py,sha256=7vY04B6r08nurTTFmBXHyR5tVIF1YzAEw_uz4pqTDIw,4233
|
31
31
|
wolfhece/flow_SPWMI.py,sha256=XDAelwAY-3rYOR0WKW3fgYJ_r8DU4IP6Y5xULW421tk,20956
|
32
32
|
wolfhece/friction_law.py,sha256=MtZJLo-pTj3-Fw-w12z1LSgSIDrH-JGR0iD9wer_fpQ,5498
|
33
|
-
wolfhece/gpuview.py,sha256=
|
33
|
+
wolfhece/gpuview.py,sha256=ggFoxBntUjHqsoxwTZQOE-UsbtC8YAIwZD1i3veAe-o,24204
|
34
34
|
wolfhece/import_ascfiles.py,sha256=6Zl8qBR9c6VtyziookQ8YE9KC0GtW_J9WFt5ubyGp-s,4465
|
35
35
|
wolfhece/ins.py,sha256=0aU1mo4tYbw64Gwzrqbh-NCTH1tukmk0mpPHjRPHZXU,12661
|
36
36
|
wolfhece/irm_qdf.py,sha256=gDuM9sEowQndLTL8vzbZW879M1go2xiKeE4EAJD2bA4,16532
|
@@ -43,18 +43,18 @@ wolfhece/pydike.py,sha256=hPBQsmSTW4QAp1wcOzb-TL3L7eet2WT1sJx2q-WNQ-Q,2241
|
|
43
43
|
wolfhece/pylogging.py,sha256=4TI8hgBB65z-zpvU5Rfa2jkPXPhJaqXjHVPwbcdzTNc,4528
|
44
44
|
wolfhece/pypolygons_scen.py,sha256=x-tnYLNq3MPV51NbaU14trgRj8qyUyOrMdF1zDsUX3I,37444
|
45
45
|
wolfhece/pyshields.py,sha256=7k-qe2EJgr9fJE62jyPmlWQwRj8T0DK4iuMU844ZhYs,23281
|
46
|
-
wolfhece/pyviews.py,sha256=
|
46
|
+
wolfhece/pyviews.py,sha256=5Hqqo9MRw1eiomYkmc7QywNu1KmEkytLJG-wH_aG38Y,13748
|
47
47
|
wolfhece/pywalous.py,sha256=yRaWJjKckXef1d9D5devP0yFHC9uc6kRV4G5x9PNq9k,18972
|
48
48
|
wolfhece/rain_SPWMI.py,sha256=qCfcmF7LajloOaCwnTrrSMzyME03YyilmRUOqrPrv3U,13846
|
49
49
|
wolfhece/textpillow.py,sha256=map7HsGYML_o5NHRdFg2s_TVQed_lDnpYNDv27MM0Vw,14130
|
50
50
|
wolfhece/tools_mpl.py,sha256=gQ3Jg1iuZiecmMqa5Eli2ZLSkttu68VXL8YmMDBaEYU,564
|
51
|
-
wolfhece/wolf_array.py,sha256=
|
51
|
+
wolfhece/wolf_array.py,sha256=L6OV70nFSmzfO_beNbPRQ_VoklC_cx6fyhoslI3AMXg,401812
|
52
52
|
wolfhece/wolf_hist.py,sha256=7jeVrgSkM3ErJO6SRMH_PGzfLjIdw8vTy87kesldggk,3582
|
53
53
|
wolfhece/wolf_texture.py,sha256=DS5eobLxrq9ljyebYfpMSQPn8shkUAZZVfqrOKN_QUU,16951
|
54
54
|
wolfhece/wolf_tiles.py,sha256=2Ho2I20rHRY81KXxjgLOYISdF4OkJ2d6omeY4shDoGI,10386
|
55
55
|
wolfhece/wolf_vrt.py,sha256=89XoDhCJMHiwPQUuOduxtTRKuIa8RDxgNqX65S4xp9M,10569
|
56
56
|
wolfhece/wolf_zi_db.py,sha256=baE0niMCzybWGSvPJc5FNxo9ZxsGfU4p-FmfiavFHAs,12967
|
57
|
-
wolfhece/wolfresults_2D.py,sha256=
|
57
|
+
wolfhece/wolfresults_2D.py,sha256=Iq_eOcQ_UkgfWN386oFt_VZysMt8uyYrqd36iAkkM2Q,168473
|
58
58
|
wolfhece/xyz_file.py,sha256=Se4nCPwYAYLSA5i0zsbnZUKoAMAD0mK1FJea5WSZUkk,5755
|
59
59
|
wolfhece/acceptability/Parallels.py,sha256=h4tu3SpC_hR5Hqa68aruxhtAyhs8u666YuZ40_fR5zg,3979
|
60
60
|
wolfhece/acceptability/__init__.py,sha256=hfgoPKLDpX7drN1Vpvux-_5Lfyc_7feT2C2zQr5v-Os,258
|
@@ -74,7 +74,7 @@ wolfhece/apps/curvedigitizer.py,sha256=Yps4bcayzbsz0AoVc_dkSk35dEhhn_esIBy1Ziefg
|
|
74
74
|
wolfhece/apps/hydrometry.py,sha256=lhhJsFeb4zGL4bNQTs0co85OQ_6ssL1Oy0OUJCzhfYE,656
|
75
75
|
wolfhece/apps/isocurrent.py,sha256=dagmGR8ja9QQ1gwz_8fU-N052hIw-W0mWGVkzLu6C7I,4247
|
76
76
|
wolfhece/apps/splashscreen.py,sha256=SrustmIQeXnsiD-92OzjdGhBi-S7c_j-cSvuX4T6rtg,2929
|
77
|
-
wolfhece/apps/version.py,sha256=
|
77
|
+
wolfhece/apps/version.py,sha256=SpIz9DzdUfm6CdBEDSCQMvpAeu_I5QhRFbGY92mw1h0,388
|
78
78
|
wolfhece/apps/wolf.py,sha256=j_CgvsL8rwixbVvVD5Z0s7m7cHZ86gmFLojKGuetMls,729
|
79
79
|
wolfhece/apps/wolf2D.py,sha256=4z_OPQ3IgaLtjexjMKX9ppvqEYyjFLt1hcfFABy3-jU,703
|
80
80
|
wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
|
@@ -220,7 +220,7 @@ wolfhece/mesh2d/bc_manager.py,sha256=QTGkb5TR8Y5xVnGUXPXzscGyTEQ6PA8CZPkVNwrlR1Y
|
|
220
220
|
wolfhece/mesh2d/cell_tracker.py,sha256=mPmnD5lEf3gLPuLqtAIo-Gp-ipAwQdPxzjWOGt0b7jM,8958
|
221
221
|
wolfhece/mesh2d/config_manager.py,sha256=DcdxCIIs_dyC6ayJOBULeY364LONogL9PBaqBtC9eQ4,14736
|
222
222
|
wolfhece/mesh2d/cst_2D_boundary_conditions.py,sha256=Y4DF68uAklF3fXJgf05nb_JvJk2pvzcu_wu5nFXpWJo,5008
|
223
|
-
wolfhece/mesh2d/wolf2dprev.py,sha256=
|
223
|
+
wolfhece/mesh2d/wolf2dprev.py,sha256=CvCsutTwLr-BIxzYpzbg3YxIASJtMMtJpuZ77gxCue8,491460
|
224
224
|
wolfhece/models/5_coul.pal,sha256=OI1UqcNIDBpJn2k_VDel__r-hKjjvdob0eqinGCI3QY,160
|
225
225
|
wolfhece/models/6_coul.pal,sha256=z7NK2dg0tAQBUweRQV54dIwJbPM1U5y1AR2LLw19Idw,148
|
226
226
|
wolfhece/models/7_coul.pal,sha256=XTnnUyCE8ONokScB2YzYDnSTft7E6sppmr7P-XwMsCE,205
|
@@ -284,8 +284,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=8PlMYrb_8jI8h9F0_EagpM
|
|
284
284
|
wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=ORy7fz4dcp691qKzaOZHrRLZ0uXNhL-LIHxmpDGL6BI,5007
|
285
285
|
wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
286
286
|
wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
|
287
|
-
wolfhece-2.1.
|
288
|
-
wolfhece-2.1.
|
289
|
-
wolfhece-2.1.
|
290
|
-
wolfhece-2.1.
|
291
|
-
wolfhece-2.1.
|
287
|
+
wolfhece-2.1.82.dist-info/METADATA,sha256=CoPxo3FK2QOAflVM4viGV2e3I5l5YcQICTzfwm2FXcg,2570
|
288
|
+
wolfhece-2.1.82.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
289
|
+
wolfhece-2.1.82.dist-info/entry_points.txt,sha256=ZZ-aSfbpdcmo-wo84lRFzBN7LaSnD1XRGSaAKVX-Gpc,522
|
290
|
+
wolfhece-2.1.82.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
|
291
|
+
wolfhece-2.1.82.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|