wolfhece 2.2.38__py3-none-any.whl → 2.2.39__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.
Files changed (49) hide show
  1. wolfhece/Coordinates_operations.py +5 -0
  2. wolfhece/GraphNotebook.py +72 -1
  3. wolfhece/GraphProfile.py +1 -1
  4. wolfhece/MulticriteriAnalysis.py +1579 -0
  5. wolfhece/PandasGrid.py +62 -1
  6. wolfhece/PyCrosssections.py +194 -43
  7. wolfhece/PyDraw.py +891 -73
  8. wolfhece/PyGui.py +913 -72
  9. wolfhece/PyGuiHydrology.py +528 -74
  10. wolfhece/PyPalette.py +26 -4
  11. wolfhece/PyParams.py +33 -0
  12. wolfhece/PyPictures.py +2 -2
  13. wolfhece/PyVertex.py +25 -0
  14. wolfhece/PyVertexvectors.py +94 -28
  15. wolfhece/PyWMS.py +52 -36
  16. wolfhece/acceptability/acceptability.py +15 -8
  17. wolfhece/acceptability/acceptability_gui.py +507 -360
  18. wolfhece/acceptability/func.py +80 -183
  19. wolfhece/apps/version.py +1 -1
  20. wolfhece/compare_series.py +480 -0
  21. wolfhece/drawing_obj.py +12 -1
  22. wolfhece/hydrology/Catchment.py +228 -162
  23. wolfhece/hydrology/Internal_variables.py +43 -2
  24. wolfhece/hydrology/Models_characteristics.py +69 -67
  25. wolfhece/hydrology/Optimisation.py +893 -182
  26. wolfhece/hydrology/PyWatershed.py +267 -165
  27. wolfhece/hydrology/SubBasin.py +185 -140
  28. wolfhece/hydrology/cst_exchanges.py +76 -1
  29. wolfhece/hydrology/forcedexchanges.py +413 -49
  30. wolfhece/hydrology/read.py +65 -5
  31. wolfhece/hydrometry/kiwis.py +14 -7
  32. wolfhece/insyde_be/INBE_func.py +746 -0
  33. wolfhece/insyde_be/INBE_gui.py +1776 -0
  34. wolfhece/insyde_be/__init__.py +3 -0
  35. wolfhece/interpolating_raster.py +366 -0
  36. wolfhece/irm_alaro.py +1457 -0
  37. wolfhece/irm_qdf.py +889 -57
  38. wolfhece/lifewatch.py +6 -3
  39. wolfhece/picc.py +124 -8
  40. wolfhece/pyLandUseFlanders.py +146 -0
  41. wolfhece/pydownloader.py +2 -1
  42. wolfhece/pywalous.py +225 -31
  43. wolfhece/toolshydrology_dll.py +149 -0
  44. wolfhece/wolf_array.py +63 -25
  45. {wolfhece-2.2.38.dist-info → wolfhece-2.2.39.dist-info}/METADATA +3 -1
  46. {wolfhece-2.2.38.dist-info → wolfhece-2.2.39.dist-info}/RECORD +49 -40
  47. {wolfhece-2.2.38.dist-info → wolfhece-2.2.39.dist-info}/WHEEL +0 -0
  48. {wolfhece-2.2.38.dist-info → wolfhece-2.2.39.dist-info}/entry_points.txt +0 -0
  49. {wolfhece-2.2.38.dist-info → wolfhece-2.2.39.dist-info}/top_level.txt +0 -0
@@ -547,6 +547,9 @@ class hydrometry():
547
547
 
548
548
  def _get_sites_pythonlist(self):
549
549
  """ Obtention des sites en liste python """
550
+ if self.sites is None:
551
+ logging.warning('No sites available - Please check the hydrometry instance')
552
+ return []
550
553
 
551
554
  list_name_code = [curname+' --- '+curno for curname,curno in zip(self.sites[kiwis_site_fields.site_name.value].values,self.sites[kiwis_site_fields.site_no.value].values)]
552
555
  return list_name_code
@@ -649,7 +652,7 @@ class hydrometry():
649
652
  return ([],[],[])
650
653
  else:
651
654
  return ([curname + ' - ' + str(curid) for curname, curid in zip(stations_r[station_fields.STATION_NAME.value].values,
652
- stations_r[station_fields.STATION_ID.value].values)],
655
+ stations_r[station_fields.STATION_NO.value].values)],
653
656
  stations_r[station_fields.STATION_LOCAL_X.value].values,
654
657
  stations_r[station_fields.STATION_LOCAL_Y.value].values)
655
658
 
@@ -941,12 +944,16 @@ class hydrometry():
941
944
  elif stationcode!='':
942
945
  id=self.get_stationid(code=stationcode)
943
946
 
944
- json_data = requests.get(self._get_commandstr(kiwis_command.getTimeseriesList)
945
- +'&station_id='+str(id)
946
- +'&format=json'
947
- ,verify=True,
948
- headers=self._header,
949
- timeout=TIMEOUT).json()
947
+ try:
948
+ json_data = requests.get(self._get_commandstr(kiwis_command.getTimeseriesList)
949
+ +'&station_id='+str(id)
950
+ +'&format=json'
951
+ ,verify=True,
952
+ headers=self._header,
953
+ timeout=TIMEOUT).json()
954
+ except requests.exceptions.RequestException as e:
955
+ logging.error(f"Error fetching timeseries list: {e}")
956
+ return id, None
950
957
 
951
958
  try:
952
959
  if json_data[0] == 'No matches.':