wolfhece 2.1.55__py3-none-any.whl → 2.1.57__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
@@ -8134,10 +8134,17 @@ class WolfMapViewer(wx.Frame):
8134
8134
  ttsize = self.mytooltip.GetSize()
8135
8135
  self.mytooltip.position(pos + posframe + (ttsize[0] / 2. + 15, 15))
8136
8136
  else:
8137
+
8137
8138
  self.mytooltip.SetWindowStyle(wx.DEFAULT_FRAME_STYLE)
8138
8139
  width, height = self.GetSize()
8139
- posframe[0] += width
8140
- self.mytooltip.position(posframe)
8140
+
8141
+ if self.IsFullScreen():
8142
+ posframe[0] += width - self.mytooltip.GetSize()[0] - 10
8143
+ else:
8144
+ if shiftdown:
8145
+ posframe[0] += width
8146
+ posframe[1] -= 50
8147
+ self.mytooltip.position(posframe)
8141
8148
 
8142
8149
  self.mytooltip.Show(True)
8143
8150
 
@@ -8418,10 +8425,19 @@ class WolfMapViewer(wx.Frame):
8418
8425
  'CTRL+Shift+F4': _('Particle system : choose the step based on time'),
8419
8426
  'SPACE': _('Particle system : pause/resume animation'),
8420
8427
 
8428
+ 'Left Click and move': _('Drawing : translate the view'),
8429
+ 'Mouse wheel click and move': _('Drawing : translate the view'),
8430
+ 'Mouse wheel': _('Drawing : zoom in/out - centered on the middle of the canvas'),
8431
+ 'Mouse wheel + Space Bar': _('Drawing : zoom in/out - centered on the mouse position'),
8432
+ 'z, Z': _('Drawing : zoom out/in - centered on the middle of the canvas'),
8433
+ 'Touchpad 2 fingers': _('Drawing : zoom in/out - centered on the middle of the canvas'),
8434
+ 'CTRL + z': _('Drawing : Autoscale only on active array'),
8435
+ 'CTRL + Z': _('Drawing : Autoscale only on active vector'),
8436
+
8437
+ 'Arrow keys': _('Drawing : lateral movements'),
8438
+
8421
8439
  'F5': _('Drawing : autoscale'),
8422
8440
  'F7': _('Drawing : refresh'),
8423
- 'Z': _('Drawing : zoom in'),
8424
- 'z': _('Drawing : zoom out'),
8425
8441
  'Arrows': _('Drawing : lateral movements'),
8426
8442
  'c or C': _('Drawing : copy canvas to Clipboard wo axes'),
8427
8443
  'CTRL+C': _('Drawing : copy canvas to Clipboard as Matplotlib image'),
@@ -8437,9 +8453,12 @@ class WolfMapViewer(wx.Frame):
8437
8453
  'n or N': _('Arrays : node-by-node selection'),
8438
8454
  'b or B': _('Arrays : temporary vector selection'),
8439
8455
  'v or V': _('Arrays : activated vector selection - inner zone'),
8456
+
8440
8457
  'r': _('Arrays : reset the selection'),
8441
- 'R': _('Arrays : reset all selections'),
8442
- '1,2...9': _('Arrays : transfer the selection to the dictionary'),
8458
+ 'R': _('Arrays : reset the selection and the associated dictionnary'),
8459
+
8460
+ '1,2...9': _('Arrays : transfer the selection to the associated dictionary - key 1 to 9'),
8461
+
8443
8462
  'i': _('Arrays : 2D interpolation based on the selection on the current matrix'),
8444
8463
  'CTRL+C': _('Arrays : Set copy source and current selection to clipboard as string'),
8445
8464
  'CTRL+X': _('Arrays : Crop the active array using the active vector and make a copy'),
@@ -8468,7 +8487,7 @@ class WolfMapViewer(wx.Frame):
8468
8487
  txt += curgroup + '\n'
8469
8488
  for curkey, curval in shortcuts.items():
8470
8489
  if curgroup in curval:
8471
- txt += '\t' + curkey + ' : ' + curval + '\n'
8490
+ txt += '\t' + curkey + ' : ' + curval.split(':')[1] + '\n'
8472
8491
  txt += '\n'
8473
8492
  return txt
8474
8493
 
@@ -8487,7 +8506,7 @@ class WolfMapViewer(wx.Frame):
8487
8506
  sizer.Add(multiline, 1, wx.EXPAND)
8488
8507
 
8489
8508
  frame.SetSizer(sizer)
8490
-
8509
+ frame.SetIcon(self.GetIcon())
8491
8510
  frame.SetAutoLayout(True)
8492
8511
  frame.Layout()
8493
8512
 
@@ -8804,6 +8823,19 @@ class WolfMapViewer(wx.Frame):
8804
8823
 
8805
8824
  logging.info(_('Selection/Values pasted'))
8806
8825
 
8826
+ elif key == ord('Z'):
8827
+
8828
+ if ctrldown:
8829
+ if shiftdown:
8830
+ if self.active_vector is not None:
8831
+ self.zoom_on_vector(self.active_vector, canvas_height= self.canvas.GetSize()[1])
8832
+ else:
8833
+ logging.warning(_('No active vector to zoom on !'))
8834
+ else:
8835
+ if self.active_array is not None:
8836
+ self.zoom_on_array(self.active_array, canvas_height= self.canvas.GetSize()[1])
8837
+ else:
8838
+ logging.warning(_('No active array to zoom on !'))
8807
8839
  else:
8808
8840
  if key == wx.WXK_DELETE:
8809
8841
  self.removeobj()
wolfhece/PyGui.py CHANGED
@@ -150,7 +150,7 @@ class MapManager(GenMapManager):
150
150
 
151
151
  icon = wx.Icon()
152
152
 
153
- icon_path = Path(__file__).parent / "apps/wolf_logo.bmp"
153
+ icon_path = Path(__file__).parent / "apps/wolf_logo2.bmp"
154
154
 
155
155
  icon.CopyFromBitmap(wx.Bitmap(str(icon_path), wx.BITMAP_TYPE_ANY))
156
156
 
@@ -8,6 +8,10 @@ This script and its content are protected by copyright law. Unauthorized
8
8
  copying or distribution of this file, via any medium, is strictly prohibited.
9
9
  """
10
10
 
11
+ import ctypes
12
+ myappid = 'wolf_hece_uliege' # arbitrary string
13
+ ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
14
+
11
15
  import wx
12
16
 
13
17
  from ..PyTranslate import _
@@ -8,6 +8,10 @@ This script and its content are protected by copyright law. Unauthorized
8
8
  copying or distribution of this file, via any medium, is strictly prohibited.
9
9
  """
10
10
 
11
+ import ctypes
12
+ myappid = 'wolf_hece_uliege' # arbitrary string
13
+ ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
14
+
11
15
  import wx
12
16
 
13
17
  from ..PyTranslate import _
@@ -8,6 +8,10 @@ This script and its content are protected by copyright law. Unauthorized
8
8
  copying or distribution of this file, via any medium, is strictly prohibited.
9
9
  """
10
10
 
11
+ import ctypes
12
+ myappid = 'wolf_hece_uliege' # arbitrary string
13
+ ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
14
+
11
15
  from ..PyTranslate import _
12
16
 
13
17
  import wx
@@ -9,6 +9,10 @@ This script and its content are protected by copyright law. Unauthorized
9
9
  copying or distribution of this file, via any medium, is strictly prohibited.
10
10
  """
11
11
 
12
+ import ctypes
13
+ myappid = 'wolf_hece_uliege' # arbitrary string
14
+ ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
15
+
12
16
  from ..PyTranslate import _
13
17
 
14
18
 
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 = 55
8
+ self.patch = 57
9
9
 
10
10
  def __str__(self):
11
11
 
wolfhece/apps/wolf.py CHANGED
@@ -11,6 +11,10 @@ copying or distribution of this file, via any medium, is strictly prohibited.
11
11
  import wx
12
12
  from ..PyTranslate import _
13
13
 
14
+ import ctypes
15
+ myappid = 'wolf_hece_uliege' # arbitrary string
16
+ ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
17
+
14
18
  def main():
15
19
  ex = wx.App()
16
20
 
wolfhece/apps/wolf2D.py CHANGED
@@ -10,6 +10,10 @@ copying or distribution of this file, via any medium, is strictly prohibited.
10
10
 
11
11
  import wx
12
12
 
13
+ import ctypes
14
+ myappid = 'wolf_hece_uliege' # arbitrary string
15
+ ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
16
+
13
17
  def main():
14
18
  ex = wx.App()
15
19
 
Binary file
Binary file
Binary file
@@ -8,6 +8,10 @@ This script and its content are protected by copyright law. Unauthorized
8
8
  copying or distribution of this file, via any medium, is strictly prohibited.
9
9
  """
10
10
 
11
+ import ctypes
12
+ myappid = 'wolf_hece_uliege' # arbitrary string
13
+ ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
14
+
11
15
  #import des modules
12
16
  from os import path
13
17
  import sys
@@ -8,6 +8,10 @@ This script and its content are protected by copyright law. Unauthorized
8
8
  copying or distribution of this file, via any medium, is strictly prohibited.
9
9
  """
10
10
 
11
+ import ctypes
12
+ myappid = 'wolf_hece_uliege' # arbitrary string
13
+ ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
14
+
11
15
  import wx
12
16
 
13
17
  from ..PyTranslate import _
wolfhece/wolf_array.py CHANGED
@@ -2443,6 +2443,7 @@ class Ops_Array(wx.Frame):
2443
2443
  if self.mapviewer is not None:
2444
2444
  self.mapviewer.start_action('select node by node', _('Please click on the desired nodes...'))
2445
2445
  self.mapviewer.active_array = self.parentarray
2446
+ self.mapviewer.set_label_selecteditem(self.parentarray.idx)
2446
2447
 
2447
2448
  def select_zone_inside_manager(self):
2448
2449
  """
@@ -2485,6 +2486,7 @@ class Ops_Array(wx.Frame):
2485
2486
 
2486
2487
  self.mapviewer.start_action('select by vector inside', _('Please draw a polygon...'))
2487
2488
  self.mapviewer.active_array = self.parentarray
2489
+ self.mapviewer.set_label_selecteditem(self.parentarray.idx)
2488
2490
  self.Active_vector(vect)
2489
2491
 
2490
2492
  firstvert = wolfvertex(0., 0.)
@@ -2523,6 +2525,7 @@ class Ops_Array(wx.Frame):
2523
2525
 
2524
2526
  self.mapviewer.start_action('select by vector along', _('Please draw a polyline...'))
2525
2527
  self.mapviewer.active_array = self.parentarray
2528
+ self.mapviewer.set_label_selecteditem(self.parentarray.idx)
2526
2529
  self.Active_vector(vect)
2527
2530
 
2528
2531
  firstvert = wolfvertex(0., 0.)
@@ -2538,6 +2541,7 @@ class Ops_Array(wx.Frame):
2538
2541
  self.vectmp.reset()
2539
2542
  self.Active_vector(self.vectmp)
2540
2543
  self.mapviewer.active_array = self.parentarray
2544
+ self.mapviewer.set_label_selecteditem(self.parentarray.idx)
2541
2545
 
2542
2546
  firstvert = wolfvertex(0., 0.)
2543
2547
  self.vectmp.add_vertex(firstvert)
@@ -2552,6 +2556,7 @@ class Ops_Array(wx.Frame):
2552
2556
  self.vectmp.reset()
2553
2557
  self.Active_vector(self.vectmp)
2554
2558
  self.mapviewer.active_array = self.parentarray
2559
+ self.mapviewer.set_label_selecteditem(self.parentarray.idx)
2555
2560
 
2556
2561
  firstvert = wolfvertex(0., 0.)
2557
2562
  self.vectmp.add_vertex(firstvert)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wolfhece
3
- Version: 2.1.55
3
+ Version: 2.1.57
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,8 +7,8 @@ wolfhece/ManageParams.py,sha256=EeuUI5Vvh9ixCvYf8YShMC1s1Yacc7OxOCN7q81gqiQ,517
7
7
  wolfhece/Model1D.py,sha256=uL1DJVmDI2xVSE7H6n3icn3QbsPtTHeg8E-6wkDloKw,476914
8
8
  wolfhece/PyConfig.py,sha256=FB8u0belXOXTb03Ln6RdVWvMgjzi3oGPCmw2dWa3lNg,8332
9
9
  wolfhece/PyCrosssections.py,sha256=FnmM9DWY_SAF2EDH9Gu2PojXNtSTRF4-aYQuAAJXBh4,112771
10
- wolfhece/PyDraw.py,sha256=Ib7Rix3QAjR9X0o1E-80_91QsKhWtxmnR2QA89WIPQU,402676
11
- wolfhece/PyGui.py,sha256=aRWv9tBpRl7sKEd2gHWj8Bss0ZOKbGlUYIehWHFm8WY,105008
10
+ wolfhece/PyDraw.py,sha256=42kZbude0BSlpMfLPtcsUeYeCqzMj8AXVb5VuCHTK68,404422
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
14
14
  wolfhece/PyPalette.py,sha256=3ehK6H2PvqSe0zICR1HyNs6KQokR1DmnAh4LwYnLIcU,28009
@@ -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=Yg3iX0hPXkdJTuwu6rXlRee2w6hL595_4RZWCUrFWKc,374869
51
+ wolfhece/wolf_array.py,sha256=rHuPaSRTsTxQll8luqk5fdnAWRrEh73e30rdxjxA2Ls,375234
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
@@ -62,22 +62,25 @@ wolfhece/acceptability/acceptability.py,sha256=rk2NMGNx5uZADMZKA-CsGm612vtcse1DN
62
62
  wolfhece/acceptability/acceptability_gui.py,sha256=xyZt0u1DH2afsg04f50tk3QZkXNOgkGE99ZwaM_BaFI,12298
63
63
  wolfhece/acceptability/cli.py,sha256=WVyEtse0vh6PSCBNhT7x6wwdJI9D5iy5H-AkWov-vxs,7386
64
64
  wolfhece/acceptability/func.py,sha256=ZtBtxGGvWddrw0s4SU0y7DcU9K4kWxjQv1dB5zPki4s,61476
65
- wolfhece/apps/ManageParams.py,sha256=Y8QySTiqqYNvu3Q-5EuYGVqxGlKnBZwxTewXd6Ur1Tk,610
66
- wolfhece/apps/Optimisation_hydro.py,sha256=mfadJxYbRrQYmhIsB5Dled-6ZPnPNgBoxF-Q1JXL4yA,672
65
+ wolfhece/apps/ManageParams.py,sha256=9okXHGHKEayA9iKTnv8jsVYCP2up5kr6hDaKO_fMCaQ,748
66
+ wolfhece/apps/Optimisation_hydro.py,sha256=ySIaVsFNEx4PaHFLlT2QW9BiwChVcTNd2TBnW1aICsI,810
67
67
  wolfhece/apps/WolfPython.png,sha256=K3dcbeZUiJCFNwOAAlGMaRGLJ56yM8WD2I_0bk0xT1g,104622
68
68
  wolfhece/apps/WolfPython2.png,sha256=VMPV-M-3BCOg8zOJss8bXwPmzRYZy8Fo-XtnVYNgbaw,618073
69
69
  wolfhece/apps/WolfPython3.png,sha256=3G84zx14HnlB9YXMY4VUAO7IB3eu7JFvi4Kpmc_4zBE,403298
70
70
  wolfhece/apps/__init__.py,sha256=OzzKItATWV0mDkz_LC2L3w5sgT2rt8ExXXCbR_FwvlY,24
71
71
  wolfhece/apps/check_install.py,sha256=SG024u18G7VRLKynbp7DKD1jImtHwuWwN4bJWHm-YHE,1271
72
- wolfhece/apps/curvedigitizer.py,sha256=_hRR2PWow7PU7rTHIbc6ykZ08tCXcK9uy7RFrb4EKkE,5196
73
- wolfhece/apps/isocurrent.py,sha256=MuwTodHxdc6PrqNpphR2ntYf1NLL2n9klTPndGrOHDQ,4109
72
+ wolfhece/apps/curvedigitizer.py,sha256=Yps4bcayzbsz0AoVc_dkSk35dEhhn_esIBy1Ziefgmk,5334
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=POD15Cc2AZYe1VXE08EaduFN-zrnSaxN6wGC-H49Xoo,388
76
- wolfhece/apps/wolf.py,sha256=mM6Tyi4DlKQILmO49cDUCip9fYVy-hLXkY3YhZgIeUQ,591
77
- wolfhece/apps/wolf2D.py,sha256=yPQGee7fsegoQ8GfWKrWEjX1Az_ApL-UWlBiqPvaIyY,565
75
+ wolfhece/apps/version.py,sha256=_LHTN6KB7_RiP0O4AhyTlsUdSaJH41BhhjQ7nNU0TWs,388
76
+ wolfhece/apps/wolf.py,sha256=j_CgvsL8rwixbVvVD5Z0s7m7cHZ86gmFLojKGuetMls,729
77
+ wolfhece/apps/wolf2D.py,sha256=4z_OPQ3IgaLtjexjMKX9ppvqEYyjFLt1hcfFABy3-jU,703
78
78
  wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
79
- wolfhece/apps/wolfcompare2Darrays.py,sha256=MQ7of28V-TZa9kMMy8NFijbRNaBVJa6R8PNoXwXQK7A,4041
80
- wolfhece/apps/wolfhydro.py,sha256=MlVQ8vJkpaFynOWl5MX93Jpl_FYmsu78Xb0Gm6oNsRo,679
79
+ wolfhece/apps/wolf_logo2.bmp,sha256=pCJFVDn_-rHru6fumazVNM4BqAaobM0Xg0zI0DFWMSQ,5830
80
+ wolfhece/apps/wolf_logo3.bmp,sha256=AxRvS_uc2MJn_ksMExPhFEDJ0_PmlR3xU13gzfc28xk,5830
81
+ wolfhece/apps/wolf_logo4.bmp,sha256=N6d_NZ3V2M-qtSdTM0LP3PhU2TtltB_UNW6Z2WiLrvM,5830
82
+ wolfhece/apps/wolfcompare2Darrays.py,sha256=AfEJjku_oSWWqyCIDOqId0quZrS_NpTIFN4fHcVDWb4,4179
83
+ wolfhece/apps/wolfhydro.py,sha256=EsXTtXhnsQV1j-tiFYcyfMrJpjFv1MrWiftwODdi_8I,817
81
84
  wolfhece/bernoulli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
82
85
  wolfhece/bernoulli/chamber.py,sha256=ZWNjTAmTaH8u8J00n8uEib7dy84mUfHWN43805W_Qsw,2354
83
86
  wolfhece/bernoulli/fluids.py,sha256=-mPv3EtCcIEfvTI7oSELtOjUFiKhKANu8w96NnUnrvU,464
@@ -280,8 +283,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=8PlMYrb_8jI8h9F0_EagpM
280
283
  wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=ORy7fz4dcp691qKzaOZHrRLZ0uXNhL-LIHxmpDGL6BI,5007
281
284
  wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
282
285
  wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
283
- wolfhece-2.1.55.dist-info/METADATA,sha256=RauQP3GnJ5Y_HTZ_79bVAZVYSVulNhDpEsPp1dPVLHc,2541
284
- wolfhece-2.1.55.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
285
- wolfhece-2.1.55.dist-info/entry_points.txt,sha256=Q5JuIWV4odeIJI3qc6fV9MwRoz0ezqPVlFC1Ppm_vdQ,395
286
- wolfhece-2.1.55.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
287
- wolfhece-2.1.55.dist-info/RECORD,,
286
+ wolfhece-2.1.57.dist-info/METADATA,sha256=DslVY-yNMyENi7ZMy3_8ZLIWIFU2Eua2Jdw4Z9eGEjg,2541
287
+ wolfhece-2.1.57.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
288
+ wolfhece-2.1.57.dist-info/entry_points.txt,sha256=Q5JuIWV4odeIJI3qc6fV9MwRoz0ezqPVlFC1Ppm_vdQ,395
289
+ wolfhece-2.1.57.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
290
+ wolfhece-2.1.57.dist-info/RECORD,,