wolfhece 2.2.44__py3-none-any.whl → 2.2.45__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.
@@ -728,9 +728,9 @@ class profile(vector):
728
728
 
729
729
  myxyz = self.parent.gridlaz.scan(mybounds)
730
730
 
731
- prep_poly = prepare(mypoly)
732
- mytests = [prep_poly.contains(Point(cur[:3])) for cur in myxyz]
733
- destroy_prepared(prep_poly)
731
+ prepare(mypoly)
732
+ mytests = [mypoly.contains(Point(cur[:3])) for cur in myxyz]
733
+ destroy_prepared(mypoly)
734
734
 
735
735
  self.usedlaz = np.asarray(myxyz[mytests])
736
736
 
@@ -3012,13 +3012,13 @@ class crosssections(Element_To_Draw):
3012
3012
  curlinkprop = myvec.myname
3013
3013
 
3014
3014
  myvecls = myvec.asshapely_ls()
3015
- prepls=prepare(myvecls)
3015
+ prepare(myvecls)
3016
3016
 
3017
3017
  for cursname in self.myprofiles.values():
3018
3018
  curs:profile
3019
3019
  curs=cursname['cs']
3020
3020
  cursls = curs.asshapely_ls()
3021
- if prepls.intersects(cursls):
3021
+ if myvecls.intersects(cursls):
3022
3022
  pt = myvecls.intersection(cursls)
3023
3023
 
3024
3024
  if pt.geom_type=='MultiPoint':
@@ -3041,7 +3041,7 @@ class crosssections(Element_To_Draw):
3041
3041
  curs.refpoints[curlinkprop]=myvert
3042
3042
 
3043
3043
  cursname[curlinkprop]=myvert
3044
- destroy_prepared(prepls)
3044
+ destroy_prepared(myvecls)
3045
3045
 
3046
3046
  self.update_cloud()
3047
3047
 
@@ -3438,14 +3438,14 @@ class crosssections(Element_To_Draw):
3438
3438
  mysorted = curdict['sorted'] = []
3439
3439
  length = vecsupport.length
3440
3440
 
3441
- prepsup=prepare(vecsupport) #Prepare le vecteur support aux opérations récurrentes
3441
+ prepare(vecsupport) #Prepare le vecteur support aux opérations récurrentes
3442
3442
  curvect:profile
3443
3443
  for idx,curv in self.myprofiles.items():
3444
3444
  #bouclage sur les sections
3445
3445
  curvect=curv['cs']
3446
3446
  #obtention de la section sous forme d'un objet Shapely
3447
3447
  myline = curvect.asshapely_ls()
3448
- if prepsup.intersects(myline):
3448
+ if vecsupport.intersects(myline):
3449
3449
  #le vecteur intersecte --> on calcule le point d'intersection
3450
3450
  myintersect = vecsupport.intersection(myline)
3451
3451
  #on projette l'intersection sur le support pour trouver l'abscisse curvi
@@ -3456,7 +3456,7 @@ class crosssections(Element_To_Draw):
3456
3456
  curvect.s = length - mydist
3457
3457
  else:
3458
3458
  curvect.s = mydist
3459
- destroy_prepared(prepsup)
3459
+ destroy_prepared(vecsupport)
3460
3460
 
3461
3461
  #on trie le résultat en place
3462
3462
  mysorted.sort(key=lambda x:x.s)
wolfhece/apps/version.py CHANGED
@@ -5,7 +5,7 @@ class WolfVersion():
5
5
 
6
6
  self.major = 2
7
7
  self.minor = 2
8
- self.patch = 44
8
+ self.patch = 45
9
9
 
10
10
  def __str__(self):
11
11
 
wolfhece/dike.py CHANGED
@@ -32,10 +32,12 @@ from wolfhece.wolf_array import WolfArray
32
32
  from wolfhece.matplotlib_fig import Matplotlib_Figure
33
33
  from wolfhece.PyTranslate import _
34
34
 
35
- from wolfgpu.SimulationRunner import SimulationRunner, SimulationInjector, SimulationProxy
36
- from wolfgpu.simple_simulation import SimulationDuration, SimpleSimulation
37
- from wolfgpu.results_store import ResultsStore
38
-
35
+ try:
36
+ from wolfgpu.SimulationRunner import SimulationRunner, SimulationInjector, SimulationProxy
37
+ from wolfgpu.simple_simulation import SimulationDuration, SimpleSimulation
38
+ from wolfgpu.results_store import ResultsStore
39
+ except ImportError:
40
+ logging.warning(_("Warning: wolfgpu module not found. Coupled WOLF-pydike simulations will not be available."))
39
41
  class CoupledSimulation():
40
42
  """
41
43
  Class for the coupled simulation between WOLF and pydike.
wolfhece/wolf_array.py CHANGED
@@ -6497,10 +6497,15 @@ class WolfArray(Element_To_Draw, header_wolf):
6497
6497
  if hasattr(self, 'shaded'):
6498
6498
  del self.shaded
6499
6499
 
6500
- if sys.meta_path is not None:
6501
- # Perform garbage collection if gc is available
6502
- import gc
6503
- gc.collect()
6500
+ try:
6501
+ if sys.meta_path is not None:
6502
+ # Perform garbage collection if gc is available
6503
+ import gc
6504
+ gc.collect()
6505
+ except Exception:
6506
+ # Try/except to avoid issues during interpreter shutdown
6507
+ pass
6508
+
6504
6509
  except Exception as e:
6505
6510
  print(f"Exception in WolfArray destructor: {e} -- Please report this issue")
6506
6511
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wolfhece
3
- Version: 2.2.44
3
+ Version: 2.2.45
4
4
  Author-email: Pierre Archambeau <pierre.archambeau@uliege.be>
5
5
  Project-URL: Homepage, https://uee.uliege.be/hece
6
6
  Project-URL: Issues, https://uee.uliege.be/hece
@@ -9,7 +9,7 @@ wolfhece/Model1D.py,sha256=-2ibQLscVUsXlcnJWixCIScrBPqJ9BTirmwtGXEKI-4,571155
9
9
  wolfhece/MulticriteriAnalysis.py,sha256=vGmkzYagZohNe0XjwGJ6VUXcDPjOt80lNFthXpzxCF0,59572
10
10
  wolfhece/PandasGrid.py,sha256=etfVhIHzja4Z1EUY6BcDOKX-w7V-Xou1yaf0NMqmclo,4599
11
11
  wolfhece/PyConfig.py,sha256=13DDWjJdohYHwn1uRVHB0s8Jcwq_b9pwcwbAr8NlZyc,19667
12
- wolfhece/PyCrosssections.py,sha256=nHBxyhw0TB0ZKzEEfvJRrR7Hwtig1ijQhxFkRLDD7dM,176455
12
+ wolfhece/PyCrosssections.py,sha256=tVAlYJjCjmaVzP2YFSmWX_0aJ3v9O2sh2O6NBgmUaww,176430
13
13
  wolfhece/PyDraw.py,sha256=a94Y827cyvjfDX76-k6qnITHVUVGqJ65jHD3z6qetm0,744062
14
14
  wolfhece/PyGui.py,sha256=GpVRxNpR8WNDFyHnDvhtHFFsq_cZZlyVgSkFiS-ARYI,185342
15
15
  wolfhece/PyGuiHydrology.py,sha256=dmBlRO8AljsvCPH6eVt0l9ZLx7g5j7Ubl9Srk7ECwyA,34693
@@ -33,7 +33,7 @@ wolfhece/analyze_vect.py,sha256=3lkMwaQ4KRddBVRvlP9PcM66wZwwC0eCmypP91AW-os,6015
33
33
  wolfhece/cli.py,sha256=h1tSMHALiftktreyugKcjbASXfpJUm9UYMeVxR-MtG4,6424
34
34
  wolfhece/color_constants.py,sha256=Snc5RX11Ydi756EkBp_83C7DiAQ_Z1aHD9jFIBsosAU,37121
35
35
  wolfhece/compare_series.py,sha256=M8Xce8vexq3KyVoN-de7pcgCVW0A16vrvlYZegfbwBM,17674
36
- wolfhece/dike.py,sha256=X20SEUC4UBQWo2spiBThnEj3pLWDuqcfgI2R8Ag_5D4,42210
36
+ wolfhece/dike.py,sha256=virm26hYnamBOWtFPSBrO2n1z6TmjN5aTTC9te24Pc8,42364
37
37
  wolfhece/drawing_obj.py,sha256=O_K9xlsiPn305YS_2oWTlv3-rBuGiCkwWEcYAwlJRGs,4514
38
38
  wolfhece/eikonal.py,sha256=mxFHJIVJq4pLCI5q1_NaX7Y56ZYk7BN5aqx4xtVsxvc,23291
39
39
  wolfhece/flow_SPWMI.py,sha256=XDAelwAY-3rYOR0WKW3fgYJ_r8DU4IP6Y5xULW421tk,20956
@@ -68,7 +68,7 @@ wolfhece/textpillow.py,sha256=7hgfsLYAaE_rNKD-g8xsON8sdWvoV8vbqnGGxIayShE,14137
68
68
  wolfhece/tools2d_dll.py,sha256=TfvvmyZUqEZIH0uHwUCJf0bdmCks_AiidDt23Unsp5w,13550
69
69
  wolfhece/tools_mpl.py,sha256=gQ3Jg1iuZiecmMqa5Eli2ZLSkttu68VXL8YmMDBaEYU,564
70
70
  wolfhece/toolshydrology_dll.py,sha256=cIGyhxV8H5f7GXhDqAamM7uC0W0hQTou3eTkqZdnqBE,5656
71
- wolfhece/wolf_array.py,sha256=Q_OPy_vtb_lawVXFHiY81tzBQwuPfmD5RegvsCVJjBw,588068
71
+ wolfhece/wolf_array.py,sha256=Vd_9Sp6wjTF9diu9NUOeVymjZNfTnuymYWx280Nx210,588231
72
72
  wolfhece/wolf_hist.py,sha256=fTEb60Q4TEwobdZsRU4CFXAId1eOKdWAqF8lnF1xEWc,3590
73
73
  wolfhece/wolf_texture.py,sha256=Pt1j_lX74p70Fj3y3qYxYMuN8gghVd8_ih1vFhTIdkA,23884
74
74
  wolfhece/wolf_tiles.py,sha256=v-HohqaWuMYdn75XLnA22dlloAG90iwnIqrgnB0ASQ4,10488
@@ -96,7 +96,7 @@ wolfhece/apps/curvedigitizer.py,sha256=lEJJwgAfulrrWQc-U6ij6sj59hWN3SZl4Yu1kQxVz
96
96
  wolfhece/apps/hydrometry.py,sha256=lhhJsFeb4zGL4bNQTs0co85OQ_6ssL1Oy0OUJCzhfYE,656
97
97
  wolfhece/apps/isocurrent.py,sha256=dagmGR8ja9QQ1gwz_8fU-N052hIw-W0mWGVkzLu6C7I,4247
98
98
  wolfhece/apps/splashscreen.py,sha256=EdGDN9NhudIiP7c3gVqj7dp4MWFB8ySizM_tpMnsgpE,3091
99
- wolfhece/apps/version.py,sha256=Qx9g-FVehpFmCw8uyQLrxRAHomvPUqqtQDLcaG-NVoU,388
99
+ wolfhece/apps/version.py,sha256=VmZdb3DGqah-YZlqUibhAku2wmsYYuTt_7l5Hcf0xf0,388
100
100
  wolfhece/apps/wolf.py,sha256=mRnjYsUu4KIsRuamdQWAINFMuwN4eJgMo9erG-hkZ70,729
101
101
  wolfhece/apps/wolf2D.py,sha256=4z_OPQ3IgaLtjexjMKX9ppvqEYyjFLt1hcfFABy3-jU,703
102
102
  wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
@@ -321,8 +321,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=u4C7CXe_bUyGKx7c_Bi0x9
321
321
  wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=ORy7fz4dcp691qKzaOZHrRLZ0uXNhL-LIHxmpDGL6BI,5007
322
322
  wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
323
323
  wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
324
- wolfhece-2.2.44.dist-info/METADATA,sha256=jMQUN8upqwAcfiLIAfwzauCVMPf1qRZ-rIr4E4HE-58,2792
325
- wolfhece-2.2.44.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
326
- wolfhece-2.2.44.dist-info/entry_points.txt,sha256=Jr187pyvA3EeJiQLjZK9yo6mJX7IAn6ygZU9T8qF_gQ,658
327
- wolfhece-2.2.44.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
328
- wolfhece-2.2.44.dist-info/RECORD,,
324
+ wolfhece-2.2.45.dist-info/METADATA,sha256=eV92Icaf_qIZmocjxaECy1zeighi9PKM0imSWbAUXDM,2792
325
+ wolfhece-2.2.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
326
+ wolfhece-2.2.45.dist-info/entry_points.txt,sha256=Jr187pyvA3EeJiQLjZK9yo6mJX7IAn6ygZU9T8qF_gQ,658
327
+ wolfhece-2.2.45.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
328
+ wolfhece-2.2.45.dist-info/RECORD,,