wolfhece 2.1.76__py3-none-any.whl → 2.1.78__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/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 = 76
8
+ self.patch = 78
9
9
 
10
10
  def __str__(self):
11
11
 
wolfhece/wolf_array.py CHANGED
@@ -1807,7 +1807,7 @@ class Ops_Array(wx.Frame):
1807
1807
  wx.DefaultSize, 0)
1808
1808
  self.AllSelection.SetToolTip(_("Select all nodes in one click - store 'All' in the selection list"))
1809
1809
  bSizer16_1.Add(self.AllSelection, 1, wx.EXPAND)
1810
-
1810
+
1811
1811
  memory_sizer = wx.BoxSizer(wx.HORIZONTAL)
1812
1812
  self.MoveSelection = wx.Button(self.selection, wx.ID_ANY,
1813
1813
  _("Move selection to..."), wx.DefaultPosition,
@@ -1828,7 +1828,7 @@ class Ops_Array(wx.Frame):
1828
1828
  _("Reset"), wx.DefaultPosition,
1829
1829
  wx.DefaultSize, 0)
1830
1830
  self.ResetSelection.SetToolTip(_("Reset the current selection list (keyboard shortcut r)"))
1831
-
1831
+
1832
1832
  self.ResetAllSelection = wx.Button(self.selection, wx.ID_ANY,
1833
1833
  _("Reset All"), wx.DefaultPosition,
1834
1834
  wx.DefaultSize, 0)
@@ -1903,7 +1903,7 @@ class Ops_Array(wx.Frame):
1903
1903
 
1904
1904
  self._erode_dilate_structure = wx.ComboBox(self.selection, wx.ID_ANY, _("Cross"), wx.DefaultPosition, wx.DefaultSize,
1905
1905
  ["Cross", "Square"], wx.CB_READONLY)
1906
- self._erode_dilate_structure.SetToolTip(_("Structuring element for the erode/dilate operation"))
1906
+ self._erode_dilate_structure.SetToolTip(_("Structuring shape for the erode/dilate operation -- Cross-shaped is the 4 nearest nodes, Square-shaped is the 8 nearest nodes"))
1907
1907
  erode_dilate_options.Add(self._erode_dilate_structure, 1, wx.EXPAND)
1908
1908
 
1909
1909
  erode_dilate_sizer.Add(erode_dilate_options, 1, wx.EXPAND)
@@ -2319,7 +2319,7 @@ class Ops_Array(wx.Frame):
2319
2319
 
2320
2320
  if self.parentarray.mngselection is not None:
2321
2321
  self.parentarray.mngselection.reselect_from_memory()
2322
-
2322
+
2323
2323
  def OnMoveSelect(self, event):
2324
2324
  """Transfert de la sélection courante dans un dictionnaire"""
2325
2325
 
@@ -2330,7 +2330,7 @@ class Ops_Array(wx.Frame):
2330
2330
  logging.info('Cancel transfer')
2331
2331
  dlg.Destroy()
2332
2332
  return
2333
-
2333
+
2334
2334
  idtxt = dlg.GetValue()
2335
2335
  dlg.Destroy()
2336
2336
 
@@ -2364,7 +2364,7 @@ class Ops_Array(wx.Frame):
2364
2364
 
2365
2365
  self.parentarray.SelectionData.erode_selection(nb, usemask, structure)
2366
2366
  self.refresh_array()
2367
-
2367
+
2368
2368
  def OnExpandSelection(self, event):
2369
2369
  """ Expand selection """
2370
2370
  nb = int(self._erode_dilate_value.GetValue())
@@ -2448,7 +2448,7 @@ class Ops_Array(wx.Frame):
2448
2448
  """
2449
2449
 
2450
2450
  self.parentarray.SelectionData.load_selection()
2451
-
2451
+
2452
2452
  def OnToClipboardStr(self, event):
2453
2453
  """
2454
2454
  Copy the current selection to the clipboard as a string
@@ -3261,7 +3261,7 @@ class SelectionData():
3261
3261
  if str(which) in self.selections:
3262
3262
  all_memories = False
3263
3263
  curlist = self.selections[str(which)]['select']
3264
- txt = 'Selection {}\n'.format(which)
3264
+ txt = 'Selection {}\n'.format(which)
3265
3265
  txt += 'Color : {}\n'.format(self.selections[str(which)]['color'])
3266
3266
  txt += 'X\tY\n'
3267
3267
  else:
@@ -3286,7 +3286,7 @@ class SelectionData():
3286
3286
  if all_memories:
3287
3287
  for key, cur in self.selections.items():
3288
3288
  txt += self.get_string(key)
3289
-
3289
+
3290
3290
  return txt
3291
3291
 
3292
3292
  def get_script(self, which:int = None) -> str:
@@ -3350,20 +3350,23 @@ class SelectionData():
3350
3350
 
3351
3351
  if idx is None:
3352
3352
  keys = list(self.selections.keys())
3353
+
3354
+ keys = [cur for cur in keys if len(self.selections[cur]['select']) > 0]
3355
+
3353
3356
  with wx.MultiChoiceDialog(None, "Choose the memory to reselect", "Choices", keys+['All']) as dlg:
3354
3357
  ret = dlg.ShowModal()
3355
3358
  if ret == wx.ID_CANCEL:
3356
3359
  return
3357
-
3360
+
3358
3361
  idx = dlg.GetSelections()
3359
3362
  if len(idx) == 0:
3360
- return
3361
-
3363
+ return
3364
+
3362
3365
  if len(idx) == 1 and idx[0] == len(keys):
3363
3366
  idx = keys
3364
3367
  elif len(idx) in idx:
3365
3368
  idx = keys
3366
- else:
3369
+ else:
3367
3370
  idx = [keys[i] for i in idx]
3368
3371
 
3369
3372
  for curidx in idx:
@@ -3674,7 +3677,7 @@ class SelectionData():
3674
3677
  ij = np.vstack([ij[:, 0], ij[:, 1]]).T
3675
3678
  xy = self.parent.ij2xy_np(ij)
3676
3679
 
3677
- self.myselection = xy.tolist()
3680
+ self.myselection = [(cur[0], cur[1]) for cur in xy]
3678
3681
 
3679
3682
  self.update_nb_nodes_selection()
3680
3683
 
@@ -3716,7 +3719,7 @@ class SelectionData():
3716
3719
  ij = np.vstack([ij[:, 0], ij[:, 1]]).T
3717
3720
  xy = self.parent.ij2xy_np(ij)
3718
3721
 
3719
- self.myselection = xy.tolist()
3722
+ self.myselection = [(cur[0], cur[1]) for cur in xy]
3720
3723
 
3721
3724
  self.update_nb_nodes_selection()
3722
3725
 
@@ -4574,7 +4577,7 @@ class SelectionDataMB(SelectionData):
4574
4577
  def get_string(self, which:str = None) -> str:
4575
4578
 
4576
4579
  logging.error(_('Not yet implemented for Multi-Blocks'))
4577
-
4580
+
4578
4581
  def save_selection(self, filename:str=None, which:str = None):
4579
4582
 
4580
4583
  logging.error(_('Not yet implemented for Multi-Blocks'))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wolfhece
3
- Version: 2.1.76
3
+ Version: 2.1.78
4
4
  Author-email: Pierre Archambeau <pierre.archambeau@uliege.be>
5
5
  License: Copyright (c) 2024 University of Liege. All rights reserved.
6
6
  Project-URL: Homepage, https://uee.uliege.be/hece
@@ -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=VPe_MTPd6_gjyRL627yEWnE6RbL9t-EQmEDLa1t1dVM,421909
10
+ wolfhece/PyDraw.py,sha256=ta1-9DW_wYzE32DxTg-uHCV0PHCR3mRZkkGwB7Lg4Jo,422523
11
11
  wolfhece/PyGui.py,sha256=oBIBpgBQRR_XXucKE5-RFrtqKj0DRg9VlUCRo8Mzalc,105009
12
12
  wolfhece/PyGuiHydrology.py,sha256=f60E8K9eGTnRq5RDF6yvt-ahf2AYegwQ9t25zZ2Mk1A,14946
13
13
  wolfhece/PyHydrographs.py,sha256=jwtSNMMACwarxrtN1UeQYth99UNrhwPx1IGgUwcooHA,3774
@@ -48,7 +48,7 @@ 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=Rj_N7yg4OqwLRAWwDBl0VwwpXLzP0hPwhTRcwB3P5yA,400860
51
+ wolfhece/wolf_array.py,sha256=4TL_yL2wKb22nyhxuBcXtMMRrJzOpfa_9LCefxOnzCw,400971
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
@@ -58,10 +58,10 @@ wolfhece/wolfresults_2D.py,sha256=1rzkcZtS6Y8bn8izX-kTePpstrPi9TiOkw9XBueG1fk,16
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
61
- wolfhece/acceptability/acceptability.py,sha256=rk2NMGNx5uZADMZKA-CsGm612vtcse1DNBb-8iLIz3g,24429
62
- wolfhece/acceptability/acceptability_gui.py,sha256=xyZt0u1DH2afsg04f50tk3QZkXNOgkGE99ZwaM_BaFI,12298
61
+ wolfhece/acceptability/acceptability.py,sha256=9hKkzHG6_eB_IQz4aT5mfd2E0manvpH5LBScaL_3NzA,24038
62
+ wolfhece/acceptability/acceptability_gui.py,sha256=OvJIovypnvWTewESvVxBxskDNNat6kvUiD_UwKSvk4s,12106
63
63
  wolfhece/acceptability/cli.py,sha256=WVyEtse0vh6PSCBNhT7x6wwdJI9D5iy5H-AkWov-vxs,7386
64
- wolfhece/acceptability/func.py,sha256=ZtBtxGGvWddrw0s4SU0y7DcU9K4kWxjQv1dB5zPki4s,61476
64
+ wolfhece/acceptability/func.py,sha256=XxBDs1Gs61ijxVzP-etYU0YFi2rhpWI3_UJdyZp2imU,57984
65
65
  wolfhece/apps/ManageParams.py,sha256=9okXHGHKEayA9iKTnv8jsVYCP2up5kr6hDaKO_fMCaQ,748
66
66
  wolfhece/apps/Optimisation_hydro.py,sha256=ySIaVsFNEx4PaHFLlT2QW9BiwChVcTNd2TBnW1aICsI,810
67
67
  wolfhece/apps/WolfPython.png,sha256=K3dcbeZUiJCFNwOAAlGMaRGLJ56yM8WD2I_0bk0xT1g,104622
@@ -72,7 +72,7 @@ wolfhece/apps/check_install.py,sha256=Xoi_d8MzKzNAy2xqEpERdsqgRPu0hbBWukI0WkIYzD
72
72
  wolfhece/apps/curvedigitizer.py,sha256=Yps4bcayzbsz0AoVc_dkSk35dEhhn_esIBy1Ziefgmk,5334
73
73
  wolfhece/apps/isocurrent.py,sha256=dagmGR8ja9QQ1gwz_8fU-N052hIw-W0mWGVkzLu6C7I,4247
74
74
  wolfhece/apps/splashscreen.py,sha256=SrustmIQeXnsiD-92OzjdGhBi-S7c_j-cSvuX4T6rtg,2929
75
- wolfhece/apps/version.py,sha256=mJE6gMQ0LXmVC2n9qC4xJHXz1aj3sU-1ej5zEwZ8K4E,388
75
+ wolfhece/apps/version.py,sha256=iSDBpYqBMDlJtenSrPf1i-KCVv8P0_DaMNzQWSNg-us,388
76
76
  wolfhece/apps/wolf.py,sha256=j_CgvsL8rwixbVvVD5Z0s7m7cHZ86gmFLojKGuetMls,729
77
77
  wolfhece/apps/wolf2D.py,sha256=4z_OPQ3IgaLtjexjMKX9ppvqEYyjFLt1hcfFABy3-jU,703
78
78
  wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
@@ -283,8 +283,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=8PlMYrb_8jI8h9F0_EagpM
283
283
  wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=ORy7fz4dcp691qKzaOZHrRLZ0uXNhL-LIHxmpDGL6BI,5007
284
284
  wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
285
285
  wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
286
- wolfhece-2.1.76.dist-info/METADATA,sha256=MjRjAJdHj-X5rrJuDTOU25orlRrGES6yus46PEGqQQw,2570
287
- wolfhece-2.1.76.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
288
- wolfhece-2.1.76.dist-info/entry_points.txt,sha256=Q5JuIWV4odeIJI3qc6fV9MwRoz0ezqPVlFC1Ppm_vdQ,395
289
- wolfhece-2.1.76.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
290
- wolfhece-2.1.76.dist-info/RECORD,,
286
+ wolfhece-2.1.78.dist-info/METADATA,sha256=Tj5w1MrjMbpEGSGL3AVfbSszMxt81R_ZofYefnGOd-s,2570
287
+ wolfhece-2.1.78.dist-info/WHEEL,sha256=nCVcAvsfA9TDtwGwhYaRrlPhTLV9m-Ga6mdyDtuwK18,91
288
+ wolfhece-2.1.78.dist-info/entry_points.txt,sha256=Q5JuIWV4odeIJI3qc6fV9MwRoz0ezqPVlFC1Ppm_vdQ,395
289
+ wolfhece-2.1.78.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
290
+ wolfhece-2.1.78.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.2.0)
2
+ Generator: setuptools (73.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5