wolfhece 2.1.2__py3-none-any.whl → 2.1.5__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 +8 -8
- wolfhece/PyGui.py +51 -30
- wolfhece/apps/splashscreen.py +1 -1
- wolfhece/apps/version.py +1 -1
- {wolfhece-2.1.2.dist-info → wolfhece-2.1.5.dist-info}/METADATA +1 -1
- {wolfhece-2.1.2.dist-info → wolfhece-2.1.5.dist-info}/RECORD +9 -9
- {wolfhece-2.1.2.dist-info → wolfhece-2.1.5.dist-info}/WHEEL +0 -0
- {wolfhece-2.1.2.dist-info → wolfhece-2.1.5.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.1.2.dist-info → wolfhece-2.1.5.dist-info}/top_level.txt +0 -0
wolfhece/PyDraw.py
CHANGED
@@ -3141,7 +3141,7 @@ class WolfMapViewer(wx.Frame):
|
|
3141
3141
|
if cur is not self:
|
3142
3142
|
cur.update()
|
3143
3143
|
|
3144
|
-
def zoom_on_id(self, id:str,
|
3144
|
+
def zoom_on_id(self, id:str, drawtype:draw_type = draw_type.ARRAYS, forceupdate=True, canvas_height=1024):
|
3145
3145
|
"""
|
3146
3146
|
Zoom on id
|
3147
3147
|
|
@@ -3150,19 +3150,19 @@ class WolfMapViewer(wx.Frame):
|
|
3150
3150
|
|
3151
3151
|
"""
|
3152
3152
|
|
3153
|
-
if
|
3153
|
+
if drawtype not in [draw_type.ARRAYS, draw_type.VECTORS]:
|
3154
3154
|
logging.warning(_('Draw type must be either ARRAYS or VECTORS'))
|
3155
3155
|
return
|
3156
3156
|
|
3157
|
-
obj = self.get_obj_from_id(id,
|
3157
|
+
obj = self.get_obj_from_id(id, drawtype)
|
3158
3158
|
|
3159
3159
|
if obj is None:
|
3160
|
-
logging.warning(_('No object found with id {} and drawtype {}'.format(id,
|
3160
|
+
logging.warning(_('No object found with id {} and drawtype {}'.format(id, drawtype)))
|
3161
3161
|
return
|
3162
3162
|
|
3163
|
-
if
|
3163
|
+
if drawtype == draw_type.ARRAYS:
|
3164
3164
|
self.zoom_on_array(obj, forceupdate=forceupdate, canvas_height=canvas_height)
|
3165
|
-
elif
|
3165
|
+
elif drawtype == draw_type.VECTORS:
|
3166
3166
|
self.zoom_on_vector(obj, forceupdate=forceupdate, canvas_height=canvas_height)
|
3167
3167
|
|
3168
3168
|
def zoom_on_array(self, array:WolfArray, forceupdate=True, canvas_height=1024):
|
@@ -6129,11 +6129,11 @@ class WolfMapViewer(wx.Frame):
|
|
6129
6129
|
|
6130
6130
|
"""
|
6131
6131
|
|
6132
|
-
keys = self.get_list_keys(
|
6132
|
+
keys = self.get_list_keys(drawtype, checked_state=None)
|
6133
6133
|
if id.lower() in keys:
|
6134
6134
|
try:
|
6135
6135
|
idx = keys.index(id.lower())
|
6136
|
-
return self.get_list_objects(
|
6136
|
+
return self.get_list_objects(drawtype, checked_state=None)[idx]
|
6137
6137
|
except:
|
6138
6138
|
return None
|
6139
6139
|
|
wolfhece/PyGui.py
CHANGED
@@ -69,8 +69,7 @@ class GenMapManager(wx.Frame):
|
|
69
69
|
# the garbage collector don't remove it
|
70
70
|
# before us (WolfLauncher has no parent
|
71
71
|
# so it dangles).
|
72
|
-
self._MySplash = WolfLauncher(
|
73
|
-
play_sound=self._configuration[ConfigurationKeys.PLAY_WELCOME_SOUND])
|
72
|
+
self._MySplash = WolfLauncher(play_sound=self._configuration[ConfigurationKeys.PLAY_WELCOME_SOUND])
|
74
73
|
# Don't pollute the call to wf.Frame.__init__
|
75
74
|
kw.pop(SPLASH_PARAM, None)
|
76
75
|
|
@@ -148,41 +147,63 @@ class MapManager(GenMapManager):
|
|
148
147
|
def __init__(self,*args, **kw):
|
149
148
|
super().__init__(*args, **kw)
|
150
149
|
|
151
|
-
icon = wx.
|
152
|
-
|
153
|
-
|
150
|
+
icon = wx.EmptyIcon()
|
151
|
+
|
152
|
+
icon_path = Path(__file__).parent / "apps/wolf_logo.bmp"
|
153
|
+
|
154
|
+
icon.CopyFromBitmap(wx.Bitmap(str(icon_path), wx.BITMAP_TYPE_ANY))
|
154
155
|
|
155
156
|
self.setup_mapviewer(title = 'Wolf - main data manager', wolfparent=self)
|
156
157
|
|
157
|
-
|
158
|
+
try:
|
159
|
+
self.mylogs.GetFrame().SetIcon(icon)
|
160
|
+
except:
|
161
|
+
logging.error("No icon for the log window")
|
162
|
+
|
163
|
+
try:
|
164
|
+
self.mapviewer.mytooltip.SetIcon(icon)
|
165
|
+
except:
|
166
|
+
logging.error("No icon for the tooltip window")
|
167
|
+
|
168
|
+
try:
|
169
|
+
self.mapviewer.SetIcon(icon)
|
170
|
+
except:
|
171
|
+
logging.error("No icon for the mapviewer window")
|
172
|
+
|
173
|
+
# dir_hydro = join(getcwd(),'data\\hydrometry')
|
174
|
+
dir_hydro = Path(__file__).parent / "data/hydrometry"
|
158
175
|
if not exists(dir_hydro):
|
159
176
|
makedirs(dir_hydro, exist_ok=True)
|
160
177
|
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
178
|
+
try:
|
179
|
+
self.SPWhydrometry = hydrometry_wolfgui(dir=dir_hydro, idx = 'SPW hydrometry', mapviewer=self.mapviewer, parent = self, plotted=False)
|
180
|
+
self.picc = Picc_data(data_dir=Path(r'data/PICC'), mapviewer=self.mapviewer)
|
181
|
+
self.cadaster = Cadaster_data(data_dir=Path(r'data/Cadaster'), mapviewer=self.mapviewer)
|
182
|
+
self.landmaps = PlansTerrier(mapviewer=self.mapviewer, parent = self, idx='LandMaps', plotted=True)
|
183
|
+
|
184
|
+
self.mapviewer.add_object(which='other',
|
185
|
+
newobj=self.SPWhydrometry,
|
186
|
+
ToCheck=False,
|
187
|
+
id='SPW hydrometry')
|
188
|
+
|
189
|
+
self.mapviewer.add_object(which='other',
|
190
|
+
newobj=self.picc,
|
191
|
+
ToCheck=False,
|
192
|
+
id='PICC data')
|
193
|
+
|
194
|
+
self.mapviewer.add_object(which='other',
|
195
|
+
newobj=self.cadaster,
|
196
|
+
ToCheck=False,
|
197
|
+
id='Cadaster data')
|
198
|
+
|
199
|
+
self.mapviewer.add_object(which='other',
|
200
|
+
newobj=self.landmaps,
|
201
|
+
ToCheck=False,
|
202
|
+
id='Land maps')
|
203
|
+
except:
|
204
|
+
logging.error("Can't load some data (hydrometry, picc, cadaster, landmaps) -- Please check the data directories and/or report the issue")
|
166
205
|
|
167
|
-
self.mapviewer.
|
168
|
-
newobj=self.SPWhydrometry,
|
169
|
-
ToCheck=False,
|
170
|
-
id='SPW hydrometry')
|
171
|
-
|
172
|
-
self.mapviewer.add_object(which='other',
|
173
|
-
newobj=self.picc,
|
174
|
-
ToCheck=False,
|
175
|
-
id='PICC data')
|
176
|
-
|
177
|
-
self.mapviewer.add_object(which='other',
|
178
|
-
newobj=self.cadaster,
|
179
|
-
ToCheck=False,
|
180
|
-
id='Cadaster data')
|
181
|
-
|
182
|
-
self.mapviewer.add_object(which='other',
|
183
|
-
newobj=self.landmaps,
|
184
|
-
ToCheck=False,
|
185
|
-
id='Land maps')
|
206
|
+
self.mapviewer.menu_walous()
|
186
207
|
|
187
208
|
class GPU2DModel(GenMapManager):
|
188
209
|
|
wolfhece/apps/splashscreen.py
CHANGED
@@ -25,7 +25,7 @@ class WolfLauncher(SplashScreen):
|
|
25
25
|
mask = wx.Mask(mybitmap, wx.Colour(255,0,204))
|
26
26
|
mybitmap.SetMask(mask)
|
27
27
|
splash = SPLASH_CENTRE_ON_SCREEN | SPLASH_TIMEOUT
|
28
|
-
duration =
|
28
|
+
duration = 1000 # milliseconds
|
29
29
|
|
30
30
|
# Call the constructor with the above arguments
|
31
31
|
# in exactly the following order.
|
wolfhece/apps/version.py
CHANGED
@@ -6,8 +6,8 @@ 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=
|
10
|
-
wolfhece/PyGui.py,sha256=
|
9
|
+
wolfhece/PyDraw.py,sha256=2pGgV1VwE-zfCiJnrPbJrjKfCG41ARhGTo_sF_kpd-s,376852
|
10
|
+
wolfhece/PyGui.py,sha256=vyqeacfPXvMZJXBo5GLn1ZsygA8HhKBeZJR6UCWGVSg,104777
|
11
11
|
wolfhece/PyGuiHydrology.py,sha256=wKhR-KthPRyzJ887NmsozmUpm2CIQIwO3IbYORCYjrE,7290
|
12
12
|
wolfhece/PyHydrographs.py,sha256=GKK8U0byI45H9O_e4LAOOi7Aw0Tg7Q0Lx322stPg5IQ,3453
|
13
13
|
wolfhece/PyPalette.py,sha256=_Nm2Lc4UxYlZgK8ifZDioG8a0at8oiteYC0x_4XugFc,24384
|
@@ -65,8 +65,8 @@ wolfhece/apps/__init__.py,sha256=OzzKItATWV0mDkz_LC2L3w5sgT2rt8ExXXCbR_FwvlY,24
|
|
65
65
|
wolfhece/apps/check_install.py,sha256=jrKR-njqnpIh6ZJqvP6KbDUPVCfwTNQj4glQhcyzs9o,630
|
66
66
|
wolfhece/apps/curvedigitizer.py,sha256=avWERHuVxPnJBOD_ibczwW_XG4vAenqWS8W1zjhBox8,4898
|
67
67
|
wolfhece/apps/isocurrent.py,sha256=4XnNWPa8mYUK7V4zdDRFrHFIXNG2AN2og3TqWKKcqjY,3811
|
68
|
-
wolfhece/apps/splashscreen.py,sha256=
|
69
|
-
wolfhece/apps/version.py,sha256=
|
68
|
+
wolfhece/apps/splashscreen.py,sha256=LkEVMK0eCc84NeCWD3CGja7fuQ_k1PrZdyqD3GQk_8c,2118
|
69
|
+
wolfhece/apps/version.py,sha256=qThNbWPus4Eoal744IqgA9Y2OXgnS7Y9UIsQeVikGzc,387
|
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
|
@@ -264,8 +264,8 @@ wolfhece/sounds/sonsw2.wav,sha256=pFLVt6By0_EPQNt_3KfEZ9a1uSuYTgQSX1I_Zurv9Rc,11
|
|
264
264
|
wolfhece/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
265
265
|
wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=yGbU_JsF56jsmms0gh7mxa7tbNQ_SxqhpAZxhm-mTy4,14860
|
266
266
|
wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=wCxGRnE3kzEkWlWA6-3X8ADOFux_B0a5QWJ2GnXTgJw,4709
|
267
|
-
wolfhece-2.1.
|
268
|
-
wolfhece-2.1.
|
269
|
-
wolfhece-2.1.
|
270
|
-
wolfhece-2.1.
|
271
|
-
wolfhece-2.1.
|
267
|
+
wolfhece-2.1.5.dist-info/METADATA,sha256=kKeoABb_oeKVIscNeEIVN3yTgy83__gUhVILC8tSi90,2281
|
268
|
+
wolfhece-2.1.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
269
|
+
wolfhece-2.1.5.dist-info/entry_points.txt,sha256=AIu1KMswrdsqNq_2jPtrRIU4tLjuTnj2dCY-pxIlshw,276
|
270
|
+
wolfhece-2.1.5.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
|
271
|
+
wolfhece-2.1.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|