wolfhece 2.1.65__py3-none-any.whl → 2.1.67__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 +37 -8
- wolfhece/PyVertexvectors.py +8 -12
- wolfhece/apps/version.py +1 -1
- wolfhece/hydrometry/kiwis.py +400 -116
- wolfhece/math_parser/calculator.py +29 -24
- wolfhece/wolf_array.py +29 -12
- {wolfhece-2.1.65.dist-info → wolfhece-2.1.67.dist-info}/METADATA +1 -1
- {wolfhece-2.1.65.dist-info → wolfhece-2.1.67.dist-info}/RECORD +11 -11
- {wolfhece-2.1.65.dist-info → wolfhece-2.1.67.dist-info}/WHEEL +0 -0
- {wolfhece-2.1.65.dist-info → wolfhece-2.1.67.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.1.65.dist-info → wolfhece-2.1.67.dist-info}/top_level.txt +0 -0
wolfhece/PyDraw.py
CHANGED
@@ -8500,8 +8500,8 @@ class WolfMapViewer(wx.Frame):
|
|
8500
8500
|
# \n \
|
8501
8501
|
# !! ACTIONs !!\n \
|
8502
8502
|
# N : sélection noeud par noeud de la matrice courante\n \
|
8503
|
-
# B : sélection par vecteur
|
8504
|
-
# V : sélection par vecteur
|
8503
|
+
# b, B : sélection par vecteur de la matrice courante - zone intérieure\n \
|
8504
|
+
# v, V : sélection par vecteur de la matrice courante - trace du vecteur\n \
|
8505
8505
|
# r : reset de la sélection de la matrice courante\n \
|
8506
8506
|
# R : reset de toutes les sélections de la matrice courante\n \
|
8507
8507
|
# P : sélection de la section transversale par click souris\n \
|
@@ -8533,6 +8533,7 @@ class WolfMapViewer(wx.Frame):
|
|
8533
8533
|
'CTRL+Shift+F4': _('Particle system : choose the step based on time'),
|
8534
8534
|
'SPACE': _('Particle system : pause/resume animation'),
|
8535
8535
|
|
8536
|
+
'LMB double clicks': _('Drawing : center the view on the clicked point -- future zoom will be centered on the point'),
|
8536
8537
|
'LMB and move': _('Drawing : translate the view'),
|
8537
8538
|
'Mouse wheel click and move': _('Drawing : translate the view'),
|
8538
8539
|
'Mouse wheel': _('Drawing : zoom in/out - centered on the middle of the canvas'),
|
@@ -8557,8 +8558,8 @@ class WolfMapViewer(wx.Frame):
|
|
8557
8558
|
'F11': _('Arrays : select by criteria'),
|
8558
8559
|
'F12': _('Arrays : operations'),
|
8559
8560
|
'n or N': _('Arrays : node-by-node selection'),
|
8560
|
-
'b or B': _('Arrays : temporary vector selection'),
|
8561
|
-
'v or V': _('Arrays :
|
8561
|
+
'b or B': _('Arrays : temporary/active vector selection - inside polygon'),
|
8562
|
+
'v or V': _('Arrays : temporary/active vector selection - along polyline'),
|
8562
8563
|
|
8563
8564
|
'r': _('Arrays : reset the selection'),
|
8564
8565
|
'R': _('Arrays : reset the selection and the associated dictionnary'),
|
@@ -8613,7 +8614,12 @@ class WolfMapViewer(wx.Frame):
|
|
8613
8614
|
sizer.Add(multiline, 1, wx.EXPAND)
|
8614
8615
|
|
8615
8616
|
frame.SetSizer(sizer)
|
8616
|
-
|
8617
|
+
|
8618
|
+
icon = wx.Icon()
|
8619
|
+
icon_path = Path(__file__).parent / "apps/wolf_logo2.bmp"
|
8620
|
+
icon.CopyFromBitmap(wx.Bitmap(str(icon_path), wx.BITMAP_TYPE_ANY))
|
8621
|
+
frame.SetIcon(icon)
|
8622
|
+
|
8617
8623
|
frame.SetAutoLayout(True)
|
8618
8624
|
frame.Layout()
|
8619
8625
|
|
@@ -9005,6 +9011,12 @@ class WolfMapViewer(wx.Frame):
|
|
9005
9011
|
elif key in LIST_1TO9:
|
9006
9012
|
|
9007
9013
|
if self.active_array is not None:
|
9014
|
+
|
9015
|
+
if self.active_array.SelectionData.myselection == 'all':
|
9016
|
+
logging.warning(_('No selection to transfer to the dictionary !'))
|
9017
|
+
logging.info(_('Please select some nodes before transfering to the dictionary, not ALL !'))
|
9018
|
+
return
|
9019
|
+
|
9008
9020
|
colors = [(0, 0, 255, 255), (0, 255, 0, 255), (0, 128, 255, 255), (255, 255, 0, 255), (255, 165, 0, 255), (128, 0, 128, 255), (255, 192, 203, 255), (165, 42, 42, 255), (128, 128, 128, 255)]
|
9009
9021
|
idx = LIST_1TO9.index(key)
|
9010
9022
|
if idx > 8:
|
@@ -9062,16 +9074,33 @@ class WolfMapViewer(wx.Frame):
|
|
9062
9074
|
if self.active_res2d is not None:
|
9063
9075
|
self.active_res2d.properties.select_node_by_node()
|
9064
9076
|
|
9077
|
+
if self.active_array is None and self.active_res2d is None:
|
9078
|
+
logging.warning(_('No active array or result 2D to select node by node !'))
|
9079
|
+
|
9065
9080
|
elif key == ord('V'): # V
|
9066
9081
|
if self.active_array is not None:
|
9067
|
-
|
9082
|
+
if shiftdown:
|
9083
|
+
self.active_array.myops.select_vector_inside_manager()
|
9084
|
+
else:
|
9085
|
+
self.active_array.myops.select_vector_inside_tmp()
|
9086
|
+
else:
|
9087
|
+
logging.warning(_('No active array to select the vector inside !'))
|
9068
9088
|
|
9069
9089
|
elif key == ord('B'): # B
|
9070
9090
|
if self.active_array is not None:
|
9071
|
-
|
9091
|
+
if shiftdown:
|
9092
|
+
self.active_array.myops.select_vector_under_manager()
|
9093
|
+
else:
|
9094
|
+
self.active_array.myops.select_vector_under_tmp()
|
9095
|
+
else:
|
9096
|
+
logging.warning(_('No active array to select the vector inside !'))
|
9072
9097
|
|
9073
9098
|
elif key == ord('P'): # P
|
9074
|
-
|
9099
|
+
|
9100
|
+
if self.active_cs is not None:
|
9101
|
+
self.start_action('Select nearest profile', _('Select nearest profile'))
|
9102
|
+
else:
|
9103
|
+
logging.warning(_('No active cross section to select the nearest profile !'))
|
9075
9104
|
|
9076
9105
|
elif key == ord('Z') and shiftdown: # Z
|
9077
9106
|
self.width = self.width / 1.1
|
wolfhece/PyVertexvectors.py
CHANGED
@@ -887,16 +887,10 @@ if :\n \
|
|
887
887
|
|
888
888
|
self.myprops.SetTitle(_('Vector properties - {}'.format(self.parent.myname)))
|
889
889
|
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
icon = wx.Icon()
|
895
|
-
icon_path = Path(__file__).parent / "apps/wolf_logo.bmp"
|
896
|
-
icon.CopyFromBitmap(wx.Bitmap(str(icon_path), wx.BITMAP_TYPE_ANY))
|
897
|
-
self.myprops.SetIcon(icon)
|
898
|
-
except Exception as e:
|
899
|
-
logging.warning('Problem with icon for properties window : {}'.format(e))
|
890
|
+
icon = wx.Icon()
|
891
|
+
icon_path = Path(__file__).parent / "apps/wolf_logo2.bmp"
|
892
|
+
icon.CopyFromBitmap(wx.Bitmap(str(icon_path), wx.BITMAP_TYPE_ANY))
|
893
|
+
self.myprops.SetIcon(icon)
|
900
894
|
|
901
895
|
self.myprops.Center()
|
902
896
|
self.myprops.Raise()
|
@@ -4882,8 +4876,10 @@ class Zones(wx.Frame, Element_To_Draw):
|
|
4882
4876
|
|
4883
4877
|
self.SetSizer(box)
|
4884
4878
|
|
4885
|
-
|
4886
|
-
|
4879
|
+
icon = wx.Icon()
|
4880
|
+
icon_path = Path(__file__).parent / "apps/wolf_logo2.bmp"
|
4881
|
+
icon.CopyFromBitmap(wx.Bitmap(str(icon_path), wx.BITMAP_TYPE_ANY))
|
4882
|
+
self.SetIcon(icon)
|
4887
4883
|
|
4888
4884
|
if self.idx == '':
|
4889
4885
|
if self.parent is not None:
|