wolfhece 2.1.14__py3-none-any.whl → 2.1.15__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 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
- newobj.SelectionData.dx = tmpdx
5689
- newobj.SelectionData.dy = tmpdy
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
@@ -5,7 +5,7 @@ class WolfVersion():
5
5
 
6
6
  self.major = 2
7
7
  self.minor = 1
8
- self.patch = 14
8
+ self.patch = 15
9
9
 
10
10
  def __str__(self):
11
11
 
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wolfhece
3
- Version: 2.1.14
3
+ Version: 2.1.15
4
4
  Author-email: Pierre Archambeau <pierre.archambeau@uliege.be>
5
5
  License: AGPL-v3 License
6
6
  Project-URL: Homepage, https://uee.uliege.be/hece
@@ -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=mwewDF61NQuG4Yh8p5lkla3-h5QxRD7eBBTS4jfEdMM,379576
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=lUedE9UgJNR7IoGIwixrDWyKICXt0OFXjkgkmMjbZAw,335654
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=iAAc-eeR7zIz-iR6FeTQIhd8wNdBHE1QcClTeElRpg4,388
69
+ wolfhece/apps/version.py,sha256=X3iLT7rB3ADIv1WPZzMTWmvsIohdaLhJ_J-11OkQy6U,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
@@ -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.14.dist-info/METADATA,sha256=wY1eN44TVbJRXbZOTfGdkZIwii_vMv1Ytyr1a-NOXyE,2282
271
- wolfhece-2.1.14.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
272
- wolfhece-2.1.14.dist-info/entry_points.txt,sha256=AIu1KMswrdsqNq_2jPtrRIU4tLjuTnj2dCY-pxIlshw,276
273
- wolfhece-2.1.14.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
274
- wolfhece-2.1.14.dist-info/RECORD,,
270
+ wolfhece-2.1.15.dist-info/METADATA,sha256=1jd4LkINbWxRjLu3_KsyhqidpBEGHf9x-MjtBReHkME,2282
271
+ wolfhece-2.1.15.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
272
+ wolfhece-2.1.15.dist-info/entry_points.txt,sha256=AIu1KMswrdsqNq_2jPtrRIU4tLjuTnj2dCY-pxIlshw,276
273
+ wolfhece-2.1.15.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
274
+ wolfhece-2.1.15.dist-info/RECORD,,