wolfhece 2.1.14__py3-none-any.whl → 2.1.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/apps/version.py +1 -1
- wolfhece/scenario/config_manager.py +17 -7
- wolfhece/wolf_array.py +4 -1
- {wolfhece-2.1.14.dist-info → wolfhece-2.1.16.dist-info}/METADATA +1 -1
- {wolfhece-2.1.14.dist-info → wolfhece-2.1.16.dist-info}/RECORD +9 -9
- {wolfhece-2.1.14.dist-info → wolfhece-2.1.16.dist-info}/WHEEL +0 -0
- {wolfhece-2.1.14.dist-info → wolfhece-2.1.16.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.1.14.dist-info → wolfhece-2.1.16.dist-info}/top_level.txt +0 -0
wolfhece/PyDraw.py
CHANGED
@@ -121,7 +121,7 @@ class DragdropFileTarget(wx.FileDropTarget):
|
|
121
121
|
ext = Path(filename).suffix
|
122
122
|
|
123
123
|
if ext.lower() in ['.bin', '.npy', '.hbin', '.qxin','.qybin', '.top',
|
124
|
-
'.kbin', '.epsbin', '.tif', '.frot', '.topini_fine']:
|
124
|
+
'.kbin', '.epsbin', '.tif', '.tiff', '.frot', '.topini_fine']:
|
125
125
|
return True
|
126
126
|
else:
|
127
127
|
return False
|
@@ -1181,7 +1181,7 @@ class WolfMapViewer(wx.Frame):
|
|
1181
1181
|
elif itemlabel ==_("Create video..."):
|
1182
1182
|
if self.active_res2d is not None:
|
1183
1183
|
self.create_video()
|
1184
|
-
|
1184
|
+
|
1185
1185
|
elif itemlabel == _("Setup cache..."):
|
1186
1186
|
|
1187
1187
|
if self.active_res2d is None:
|
@@ -2139,7 +2139,7 @@ class WolfMapViewer(wx.Frame):
|
|
2139
2139
|
Récupère un graphique matplotlib sur base de la fenêtre OpenGL et de la palette de la matrice active
|
2140
2140
|
"""
|
2141
2141
|
self.zoom_on(center=center, width=width, height= height, canvas_height=self.canvasheight, forceupdate=True)
|
2142
|
-
|
2142
|
+
|
2143
2143
|
|
2144
2144
|
fig,axes = plt.subplots(1,2, gridspec_kw={'width_ratios': [20, 1]})
|
2145
2145
|
self.display_canvasogl(fig=fig,ax=axes[0])
|
@@ -3421,7 +3421,7 @@ class WolfMapViewer(wx.Frame):
|
|
3421
3421
|
for cur in self.linkedList:
|
3422
3422
|
if cur is not self:
|
3423
3423
|
cur.update()
|
3424
|
-
|
3424
|
+
|
3425
3425
|
def zoom_on_active_profile(self, size:float=500., forceupdate:bool=True):
|
3426
3426
|
""" Zoom on active profile """
|
3427
3427
|
|
@@ -4108,7 +4108,7 @@ class WolfMapViewer(wx.Frame):
|
|
4108
4108
|
|
4109
4109
|
figax = self.active_res2d.plot_h(curblock.SelectionData.myselection,
|
4110
4110
|
unknown, toshow=False, figax=figax)
|
4111
|
-
if figax is not None:
|
4111
|
+
if figax is not None:
|
4112
4112
|
fig, ax = figax
|
4113
4113
|
fig.show()
|
4114
4114
|
|
@@ -5684,9 +5684,9 @@ class WolfMapViewer(wx.Frame):
|
|
5684
5684
|
newobj.dx = tmpdx
|
5685
5685
|
newobj.dy = tmpdy
|
5686
5686
|
|
5687
|
-
if newobj.SelectionData is not None:
|
5688
|
-
|
5689
|
-
|
5687
|
+
# if newobj.SelectionData is not None:
|
5688
|
+
# newobj.SelectionData.dx = tmpdx
|
5689
|
+
# newobj.SelectionData.dy = tmpdy
|
5690
5690
|
|
5691
5691
|
if cropini[0][0] != 99999. and cropini[1][0]!=99999.:
|
5692
5692
|
newobj.origx = cropini[0][0]
|
@@ -9001,7 +9001,7 @@ class Compare_Arrays_Results():
|
|
9001
9001
|
return Comp_Type.RES2D_GPU, file
|
9002
9002
|
|
9003
9003
|
else:
|
9004
|
-
if file.suffix in ('.bin', '.tif', '.npy', '.npz', '.top', '.frott', '.nap', '.hbin', '.hbinb', '.qxbin', '.qxbinb', '.qybin', '.qybinb', '.inf') :
|
9004
|
+
if file.suffix in ('.bin', '.tif', '.tiff', '.npy', '.npz', '.top', '.frott', '.nap', '.hbin', '.hbinb', '.qxbin', '.qxbinb', '.qybin', '.qybinb', '.inf') :
|
9005
9005
|
|
9006
9006
|
if file.suffix in ('.bin', '.top', '.frott', '.nap', '.hbin', '.hbinb', '.qxbin', '.qxbinb', '.qybin', '.qybinb', '.inf'):
|
9007
9007
|
if file.with_suffix(file.suffix + '.txt').exists():
|
wolfhece/apps/version.py
CHANGED
@@ -1030,8 +1030,8 @@ class Config_Manager_2D_GPU:
|
|
1030
1030
|
# check for infiltration zones vs hydrograph
|
1031
1031
|
hydro = cursim.infiltrations_chronology
|
1032
1032
|
nb_zones = len(hydro[0][1])
|
1033
|
-
if infiltration.array.
|
1034
|
-
logging.error(_('You must have {} Infiltration zones but {} are defined!'.format(nb_zones, infiltration.array.
|
1033
|
+
if infiltration.array.max() != nb_zones:
|
1034
|
+
logging.error(_('You must have {} Infiltration zones but {} are defined!'.format(nb_zones, infiltration.array.max())))
|
1035
1035
|
return
|
1036
1036
|
|
1037
1037
|
# default reporting period
|
@@ -1815,11 +1815,21 @@ class UI_Manager_2D_GPU():
|
|
1815
1815
|
self._txtctrl.write('\t'+curcol)
|
1816
1816
|
self._txtctrl.write('\n')
|
1817
1817
|
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
1818
|
+
if hydro._data.shape[0]>50:
|
1819
|
+
logging.warning(_('Too many lines in the hydrograph -- only the first 50 will be displayed !'))
|
1820
|
+
|
1821
|
+
for idx, curline in hydro._data.iloc[:50].iterrows():
|
1822
|
+
self._txtctrl.write(str(idx))
|
1823
|
+
for curval in curline.values:
|
1824
|
+
self._txtctrl.write('\t' + str(curval))
|
1825
|
+
self._txtctrl.write('\n')
|
1826
|
+
|
1827
|
+
else:
|
1828
|
+
for idx, curline in hydro._data.iterrows():
|
1829
|
+
self._txtctrl.write(str(idx))
|
1830
|
+
for curval in curline.values:
|
1831
|
+
self._txtctrl.write('\t' + str(curval))
|
1832
|
+
self._txtctrl.write('\n')
|
1823
1833
|
|
1824
1834
|
except:
|
1825
1835
|
with open(mydata, 'r', encoding='utf-8') as file:
|
wolfhece/wolf_array.py
CHANGED
@@ -4700,6 +4700,9 @@ class WolfArray(Element_To_Draw, header_wolf):
|
|
4700
4700
|
self.wolftype = WOLF_ARRAY_FULL_SINGLE
|
4701
4701
|
elif self.array.dtype == np.int32:
|
4702
4702
|
self.wolftype = WOLF_ARRAY_FULL_INTEGER
|
4703
|
+
elif self.array.dtype == np.uint8:
|
4704
|
+
self.array = self.array.astype(np.int32)
|
4705
|
+
self.wolftype = WOLF_ARRAY_FULL_INTEGER8
|
4703
4706
|
|
4704
4707
|
self.mask_data(self.nullvalue)
|
4705
4708
|
|
@@ -6203,7 +6206,7 @@ class WolfArray(Element_To_Draw, header_wolf):
|
|
6203
6206
|
logging.warning(_('No data file : ')+self.filename)
|
6204
6207
|
return
|
6205
6208
|
|
6206
|
-
if self.filename.endswith('.tif'):
|
6209
|
+
if self.filename.endswith('.tif') or self.filename.endswith('.tiff'):
|
6207
6210
|
self.import_geotif(which= which_band, crop = self.cropini)
|
6208
6211
|
# self.mask_data(self.nullvalue)
|
6209
6212
|
self.loaded = True
|
@@ -6,7 +6,7 @@ wolfhece/ManageParams.py,sha256=Wgt5Zh7QBtyiwTAltPHunSLqt4XuVuRH76GTUrXabS4,219
|
|
6
6
|
wolfhece/Model1D.py,sha256=-cMz-ePSYzrKVVDidiDOz6cojEZ3y6u9gIb7RPwT6Y8,476593
|
7
7
|
wolfhece/PyConfig.py,sha256=oGSL1WsLM9uinlNP4zGBLK3uHPmBfduUi7R-VtWuRFA,8034
|
8
8
|
wolfhece/PyCrosssections.py,sha256=f4dNYRUGZKePruaaBiTcn5vlrw8TFTj9XwTDrdiF_uU,112450
|
9
|
-
wolfhece/PyDraw.py,sha256=
|
9
|
+
wolfhece/PyDraw.py,sha256=Kfu3uoxwP6ZK9LqE5Br-GBex_bSS6k4F3tfsK-qIZvU,379565
|
10
10
|
wolfhece/PyGui.py,sha256=fqy8f3tLt7myJskVvspTQ_ZO7kaiSNKmcfFLrfr4w7M,103174
|
11
11
|
wolfhece/PyGuiHydrology.py,sha256=wKhR-KthPRyzJ887NmsozmUpm2CIQIwO3IbYORCYjrE,7290
|
12
12
|
wolfhece/PyHydrographs.py,sha256=GKK8U0byI45H9O_e4LAOOi7Aw0Tg7Q0Lx322stPg5IQ,3453
|
@@ -48,7 +48,7 @@ wolfhece/rain_SPWMI.py,sha256=YqsF-yFro3y_a6MfVRFfr-Rxi7NR1gl_i8VX7scmzes,13548
|
|
48
48
|
wolfhece/test_Results2DGPU.py,sha256=NOJ_hFXrcLSQXS1dtsqXRQltqIZtDSHMz_EgAJ2_FHU,307
|
49
49
|
wolfhece/textpillow.py,sha256=zEfLrKhfCDyMaVuQOUjHqz6MGKeQ4aewMxOsWi5-wKI,13832
|
50
50
|
wolfhece/tools_mpl.py,sha256=q8Yc4aukPPiUcEzREvZRM_em67XqXaahdoaNt0DETfE,266
|
51
|
-
wolfhece/wolf_array.py,sha256=
|
51
|
+
wolfhece/wolf_array.py,sha256=vf3S7vIdN0ziYtpHSyQRCjwneQCKlGOdCYpZE3xQcLk,335853
|
52
52
|
wolfhece/wolf_hist.py,sha256=JpRXvzJLUP-RkSkvth3DQWglgTMFI2ZEUDb4RYOfeeI,3284
|
53
53
|
wolfhece/wolf_texture.py,sha256=llQ7aV8scWXIkhpri9XjaPejzoBJsGfsln2ZnlRbFkU,16270
|
54
54
|
wolfhece/wolf_tiles.py,sha256=F2JsJHdAP8fIffNJdG_J26bonCIRtIwMmxKFqdSCRDA,10088
|
@@ -66,7 +66,7 @@ wolfhece/apps/check_install.py,sha256=jrKR-njqnpIh6ZJqvP6KbDUPVCfwTNQj4glQhcyzs9
|
|
66
66
|
wolfhece/apps/curvedigitizer.py,sha256=avWERHuVxPnJBOD_ibczwW_XG4vAenqWS8W1zjhBox8,4898
|
67
67
|
wolfhece/apps/isocurrent.py,sha256=4XnNWPa8mYUK7V4zdDRFrHFIXNG2AN2og3TqWKKcqjY,3811
|
68
68
|
wolfhece/apps/splashscreen.py,sha256=LkEVMK0eCc84NeCWD3CGja7fuQ_k1PrZdyqD3GQk_8c,2118
|
69
|
-
wolfhece/apps/version.py,sha256=
|
69
|
+
wolfhece/apps/version.py,sha256=Au2GSzDykgzYPAppTSSnywndJOLWVYMTR2cNQ5pYAeU,388
|
70
70
|
wolfhece/apps/wolf.py,sha256=gqfm-ZaUJqNsfCzmdtemSeqLw-GVdSVix-evg5WArJI,293
|
71
71
|
wolfhece/apps/wolf2D.py,sha256=gWD9ee2-1pw_nUxjgRaJMuSe4kUT-RWhOeoTt_Lh1mM,267
|
72
72
|
wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
|
@@ -246,7 +246,7 @@ wolfhece/report/reporting.py,sha256=LrOUI7j1vPefsGhqag1f2KpKRXR-5cH7SyGIsf6nOG0,
|
|
246
246
|
wolfhece/report/wolf_report.png,sha256=NoSV58LSwb-oxCcZScRiJno-kxDwRdm_bK-fiMsKJdA,592485
|
247
247
|
wolfhece/scenario/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
248
248
|
wolfhece/scenario/check_scenario.py,sha256=nFiCscEGHyz1YvjmZoKlYrfmW03-nLiDTDdRoeE6MUs,4619
|
249
|
-
wolfhece/scenario/config_manager.py,sha256=
|
249
|
+
wolfhece/scenario/config_manager.py,sha256=r3E7ZyOewoB_0M-ox3rIZ3-cO_JIbE1zD4b87pPXn6c,77957
|
250
250
|
wolfhece/scenario/imposebc_void.py,sha256=pl7c99HQQMQT7i15fDlOOFYCdOtR5c_XIBOveOTOaLc,5273
|
251
251
|
wolfhece/scenario/update_void.py,sha256=MmiDiwWHvuk0mpXOlMeB2ImY-d1Wi3Wfmg9hrDTAraE,7176
|
252
252
|
wolfhece/shaders/fragment_shader_texture.glsl,sha256=w6h8d5mJqFaGbao0LGmjRcFFdcEQ3ICIl9JpuT71K5k,177
|
@@ -267,8 +267,8 @@ wolfhece/sounds/sonsw2.wav,sha256=pFLVt6By0_EPQNt_3KfEZ9a1uSuYTgQSX1I_Zurv9Rc,11
|
|
267
267
|
wolfhece/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
268
268
|
wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=yGbU_JsF56jsmms0gh7mxa7tbNQ_SxqhpAZxhm-mTy4,14860
|
269
269
|
wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=wCxGRnE3kzEkWlWA6-3X8ADOFux_B0a5QWJ2GnXTgJw,4709
|
270
|
-
wolfhece-2.1.
|
271
|
-
wolfhece-2.1.
|
272
|
-
wolfhece-2.1.
|
273
|
-
wolfhece-2.1.
|
274
|
-
wolfhece-2.1.
|
270
|
+
wolfhece-2.1.16.dist-info/METADATA,sha256=vRdgkIGgAYvpxLhBEtKJH3C_oax5iHhWg1ryYEr1tC4,2282
|
271
|
+
wolfhece-2.1.16.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
272
|
+
wolfhece-2.1.16.dist-info/entry_points.txt,sha256=AIu1KMswrdsqNq_2jPtrRIU4tLjuTnj2dCY-pxIlshw,276
|
273
|
+
wolfhece-2.1.16.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
|
274
|
+
wolfhece-2.1.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|