wolfhece 2.1.76__py3-none-any.whl → 2.1.77__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 +6 -2
- wolfhece/apps/version.py +1 -1
- wolfhece/wolf_array.py +19 -16
- {wolfhece-2.1.76.dist-info → wolfhece-2.1.77.dist-info}/METADATA +1 -1
- {wolfhece-2.1.76.dist-info → wolfhece-2.1.77.dist-info}/RECORD +8 -8
- {wolfhece-2.1.76.dist-info → wolfhece-2.1.77.dist-info}/WHEEL +0 -0
- {wolfhece-2.1.76.dist-info → wolfhece-2.1.77.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.1.76.dist-info → wolfhece-2.1.77.dist-info}/top_level.txt +0 -0
wolfhece/PyDraw.py
CHANGED
@@ -8809,8 +8809,8 @@ class WolfMapViewer(wx.Frame):
|
|
8809
8809
|
'R': _('Arrays : reset the selection and the associated dictionnary'),
|
8810
8810
|
|
8811
8811
|
'1,2...9': _('Arrays : transfer the selection to the associated dictionary - key 1 to 9'),
|
8812
|
-
'>, <' : _('Arrays : dilate/erode the selection'),
|
8813
|
-
'CTRL+>, CTRL+<': _('Arrays : dilate/erode the selection unselecting the values inside the contour'),
|
8812
|
+
'>, <' : _('Arrays : dilate/erode the selection - cross-shaped neighbours'),
|
8813
|
+
'CTRL+>, CTRL+<': _('Arrays : dilate/erode the selection unselecting the values inside the contour - cross-shaped neighbours'),
|
8814
8814
|
|
8815
8815
|
'i': _('Arrays : 2D interpolation based on the selection on the current matrix'),
|
8816
8816
|
'CTRL+C': _('Arrays : Set copy source and current selection to clipboard as string'),
|
@@ -8937,10 +8937,12 @@ class WolfMapViewer(wx.Frame):
|
|
8937
8937
|
if self.active_array is not None:
|
8938
8938
|
if self.active_array.SelectionData is not None:
|
8939
8939
|
self.active_array.SelectionData.dilate_contour_selection(1)
|
8940
|
+
self.active_array.reset_plot()
|
8940
8941
|
elif key == 60 and not shiftdown: #'<'
|
8941
8942
|
if self.active_array is not None:
|
8942
8943
|
if self.active_array.SelectionData is not None:
|
8943
8944
|
self.active_array.SelectionData.erode_contour_selection()
|
8945
|
+
self.active_array.reset_plot()
|
8944
8946
|
|
8945
8947
|
elif key == wx.WXK_F2 and shiftdown:
|
8946
8948
|
|
@@ -9212,10 +9214,12 @@ class WolfMapViewer(wx.Frame):
|
|
9212
9214
|
if self.active_array is not None:
|
9213
9215
|
if self.active_array.SelectionData is not None:
|
9214
9216
|
self.active_array.SelectionData.dilate_selection(1)
|
9217
|
+
self.active_array.reset_plot()
|
9215
9218
|
elif key == 60 and not shiftdown: #'<'
|
9216
9219
|
if self.active_array is not None:
|
9217
9220
|
if self.active_array.SelectionData is not None:
|
9218
9221
|
self.active_array.SelectionData.erode_selection(1)
|
9222
|
+
self.active_array.reset_plot()
|
9219
9223
|
|
9220
9224
|
elif key == wx.WXK_ESCAPE:
|
9221
9225
|
|
wolfhece/apps/version.py
CHANGED
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
|
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 =
|
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 =
|
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'))
|
@@ -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=fvTs3NyeMjMr6AHbYwqJ7uSoD3uSMzddWQmMUjvc9zA,422185
|
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=
|
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
|
@@ -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=
|
75
|
+
wolfhece/apps/version.py,sha256=klzSAX95Q2bylp5-HILfWTktL1FcaIOCdg-3qeadBo8,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.
|
287
|
-
wolfhece-2.1.
|
288
|
-
wolfhece-2.1.
|
289
|
-
wolfhece-2.1.
|
290
|
-
wolfhece-2.1.
|
286
|
+
wolfhece-2.1.77.dist-info/METADATA,sha256=glI0wL4UaFiyCz0Yu9jjXkCcKoGl4jHP0wiwXHX0Vls,2570
|
287
|
+
wolfhece-2.1.77.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
|
288
|
+
wolfhece-2.1.77.dist-info/entry_points.txt,sha256=Q5JuIWV4odeIJI3qc6fV9MwRoz0ezqPVlFC1Ppm_vdQ,395
|
289
|
+
wolfhece-2.1.77.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
|
290
|
+
wolfhece-2.1.77.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|