wolfhece 2.1.22__py3-none-any.whl → 2.1.23__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
@@ -414,6 +414,7 @@ class WolfMapViewer(wx.Frame):
414
414
  createbcmanager2D = self.menucreateobj.Append(wx.ID_ANY, _('Create BC manager Wolf2D...'), _('New BC manager 2D'))
415
415
  createpartsystem = self.menucreateobj.Append(wx.ID_ANY, _('Create particle system...'), _('Create a particle system - Lagrangian view'))
416
416
  create1Dmodel = self.menucreateobj.Append(wx.ID_ANY, _('Create Wolf1D...'),('Create a 1D model using crossections, vectors and arrays...'))
417
+ create_acceptability = self.menucreateobj.Append(wx.ID_ANY, _('Create acceptability manager...'), _('Create acceptability manager'))
417
418
 
418
419
  self.filemenu.AppendSeparator()
419
420
 
@@ -5049,6 +5050,13 @@ class WolfMapViewer(wx.Frame):
5049
5050
  from .scenario.config_manager import Config_Manager_2D_GPU
5050
5051
  newmanager = Config_Manager_2D_GPU(mapviewer=self)
5051
5052
 
5053
+ elif itemlabel == _('Create acceptability manager...'):
5054
+
5055
+ from .acceptability.acceptability_gui import AcceptabilityGui
5056
+ newmanager = AcceptabilityGui()
5057
+ newmanager.mapviewer = self
5058
+ newmanager.Show()
5059
+
5052
5060
  elif itemlabel==_('Create BC manager Wolf2D...'):
5053
5061
 
5054
5062
  if self.active_array is not None:
wolfhece/PyParams.py CHANGED
@@ -927,7 +927,7 @@ class Wolf_Param(wx.Frame):
927
927
  # priority to default parameters
928
928
  if key_Param.ADDED_JSON in param_def.keys():
929
929
  param[key_Param.ADDED_JSON] = param_def[key_Param.ADDED_JSON]
930
-
930
+
931
931
  param[key_Param.COMMENT] = param_def[key_Param.COMMENT]
932
932
  param[key_Param.TYPE] = param_def[key_Param.TYPE]
933
933
 
@@ -1032,7 +1032,7 @@ class Wolf_Param(wx.Frame):
1032
1032
  else:
1033
1033
  if locvalue is None:
1034
1034
  locvalue = ""
1035
-
1035
+
1036
1036
  page.Append(pg.StringProperty(label = param_name, name = locname, value = locvalue))
1037
1037
 
1038
1038
  def _add_elem_to_page(self, page:pg.PropertyGridPage, group:str, param:dict, param_def:dict = None, prefix:str=''):
@@ -1373,6 +1373,7 @@ class Wolf_Param(wx.Frame):
1373
1373
  self.myIncParam.clear()
1374
1374
  if self.prop is not None:
1375
1375
  self.prop.Clear()
1376
+ self.prop.SetDescription("","")
1376
1377
 
1377
1378
  # Object access
1378
1379
  # -------------
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 = 22
8
+ self.patch = 23
9
9
 
10
10
  def __str__(self):
11
11
 
wolfhece/irm_qdf.py CHANGED
@@ -102,6 +102,8 @@ class MontanaIRM():
102
102
  return rain*dur/60. #to obtains [mm.h^-1] as dur is in [min]
103
103
 
104
104
  def get_hyeto(self,durmax,T,r=0.5):
105
+ """ :param r: Decentration coefficient
106
+ """
105
107
  x = np.arange(10,durmax,1,dtype=np.float64)
106
108
  # y = [self.get_instantrain(curx,T) for curx in x]
107
109
 
@@ -234,7 +236,17 @@ class Qdf_IRM():
234
236
 
235
237
 
236
238
  def importfromwebsite(self,store_path='irm',verbose=False,waitingtime=.01):
237
- """ Import des fichiers Excel pour toutes les communes depuis le site de l'IRM """
239
+ """ Import Excel files for all municipalities from the IRM website
240
+
241
+ :param store_path: Where to store the downloaded data. Directory
242
+ will be created if it doesn't exists.
243
+ :param verbose: If `True`, will print some progress information. If
244
+ `False`, will do nothing. If a callable, then will call it with a
245
+ float in [0, 1]. 0 means nothing downloaded, 1 means everything
246
+ downloaded.
247
+ :param waitingtime: How long to wait (in seconds) betwenn the download
248
+ of each station (will make sure we don't overwhelm IRM's website).
249
+ """
238
250
  import requests
239
251
 
240
252
  if not path.exists(store_path):
@@ -251,7 +263,10 @@ class Qdf_IRM():
251
263
  file.write(response.content)
252
264
  file.close()
253
265
  if verbose:
254
- print(myins)
266
+ if callable(verbose):
267
+ verbose(key/len(self.myloc.inscode2name))
268
+ else:
269
+ print(myins)
255
270
 
256
271
  sleep(waitingtime)
257
272
 
@@ -439,6 +454,8 @@ class Qdf_IRM():
439
454
  fig,ax = self.montana.plot_hyeto(durmax,T,r)
440
455
  ax.set_title(self.name + ' - code : ' + str(self.code))
441
456
 
457
+ return fig
458
+
442
459
  def plot_hyetos(self,durmax,r=.5):
443
460
 
444
461
  fig,ax = self.montana.plot_hyetos(durmax,r)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wolfhece
3
- Version: 2.1.22
3
+ Version: 2.1.23
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,12 +6,12 @@ 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=xGMogLlksiVz6o6p9URnkQD9a6w3e92cJN8RgS47aRo,389804
9
+ wolfhece/PyDraw.py,sha256=WMu6lRmC9JJkcRFoj-pkDpRrkaEWRyOMHer3zwZ42Qs,390207
10
10
  wolfhece/PyGui.py,sha256=8UWyaYwiHD9juDbPs__pmCXIDoM8r9_bGKLf29xVGZI,103140
11
11
  wolfhece/PyGuiHydrology.py,sha256=r8kcY2eGAQzSwVtLpyMUiBL5xBpMBsi7ovs0PgStGWw,14648
12
12
  wolfhece/PyHydrographs.py,sha256=GKK8U0byI45H9O_e4LAOOi7Aw0Tg7Q0Lx322stPg5IQ,3453
13
13
  wolfhece/PyPalette.py,sha256=Vl5RrBIC_a5-mZKUtBd5kG0mif946B7OtS3fnehkmOc,25012
14
- wolfhece/PyParams.py,sha256=Aj8kcT044abwBYU_OiEcJWcyNVqxYithNfbzdHyI-QA,97072
14
+ wolfhece/PyParams.py,sha256=R3AWcb7Mhixwnw4iONSN4gk1DOXKcJR2lj7jaIml4B8,97085
15
15
  wolfhece/PyPictures.py,sha256=-mJB0JL2YYiEK3D7_ssDkvYiMWK4ve9kXhozQXNeSx8,2216
16
16
  wolfhece/PyTranslate.py,sha256=4appkmNeHHZLFmUtaA_k5_5QL-5ymxnbVN4R2OblmtE,622
17
17
  wolfhece/PyVertex.py,sha256=dHTjyYYTn0F_NWerlAOBKHV79RUzEEtMJMldQtVc1Cs,40092
@@ -32,7 +32,7 @@ wolfhece/friction_law.py,sha256=vMr6BgVVV2JqhPDjBtZBtosDIZcbykZxw-fKxiJzd4M,5200
32
32
  wolfhece/gpuview.py,sha256=Lq17jV2ytQShUuvi1UE_A1-6Q0IojsKxrKhkYHRf_8w,23437
33
33
  wolfhece/import_ascfiles.py,sha256=jg4urcLdSgFS1Knvh7AVGJqM44qc_uYDNrR568tMh-A,4167
34
34
  wolfhece/ins.py,sha256=0aU1mo4tYbw64Gwzrqbh-NCTH1tukmk0mpPHjRPHZXU,12661
35
- wolfhece/irm_qdf.py,sha256=749SlAXiN1oXp5tfBJoPNJWxydQlY55K0qvIM5YexlM,15436
35
+ wolfhece/irm_qdf.py,sha256=7XeyPxy7fYbR5T4si6huCyBx1_AwoIogzNEOpu9U-xg,16234
36
36
  wolfhece/ismember.py,sha256=fkLvaH9fhx-p0QrlEzqa6ySO-ios3ysjAgXVXzLgSpY,2482
37
37
  wolfhece/multiprojects.py,sha256=K40kM09xNkQSjiwANTsA4CpaW7KEkawpBkpoiehk9yo,21251
38
38
  wolfhece/picc.py,sha256=UCWX1Y6Xb-iviI4qF-MgBSDZDWQn_tlKNfKRBUY75ow,8504
@@ -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=zxkGhL5-N1mwERa9B0LJ3RZUGCtqNlavCXcY1H1TFx0,388
69
+ wolfhece/apps/version.py,sha256=0SgGx6ma4vpnfiXmyC_QcZXNoArMJdZUfpGhFt_y1y4,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
@@ -274,8 +274,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=yGbU_JsF56jsmms0gh7mxa
274
274
  wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=wCxGRnE3kzEkWlWA6-3X8ADOFux_B0a5QWJ2GnXTgJw,4709
275
275
  wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
276
276
  wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
277
- wolfhece-2.1.22.dist-info/METADATA,sha256=JUhQi9mzKdTMu9aWvC1QPRi78EWvlHpyKguRgwKccI4,2307
278
- wolfhece-2.1.22.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
279
- wolfhece-2.1.22.dist-info/entry_points.txt,sha256=AIu1KMswrdsqNq_2jPtrRIU4tLjuTnj2dCY-pxIlshw,276
280
- wolfhece-2.1.22.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
281
- wolfhece-2.1.22.dist-info/RECORD,,
277
+ wolfhece-2.1.23.dist-info/METADATA,sha256=U_Lk5vtUoLriGYNkAHjpnEBEH6lFGzSMBrJ8D-PjIyM,2307
278
+ wolfhece-2.1.23.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
279
+ wolfhece-2.1.23.dist-info/entry_points.txt,sha256=AIu1KMswrdsqNq_2jPtrRIU4tLjuTnj2dCY-pxIlshw,276
280
+ wolfhece-2.1.23.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
281
+ wolfhece-2.1.23.dist-info/RECORD,,