wolfhece 2.2.38__py3-none-any.whl → 2.2.40__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/Coordinates_operations.py +5 -0
- wolfhece/GraphNotebook.py +72 -1
- wolfhece/GraphProfile.py +1 -1
- wolfhece/MulticriteriAnalysis.py +1579 -0
- wolfhece/PandasGrid.py +62 -1
- wolfhece/PyCrosssections.py +194 -43
- wolfhece/PyDraw.py +891 -73
- wolfhece/PyGui.py +913 -72
- wolfhece/PyGuiHydrology.py +528 -74
- wolfhece/PyPalette.py +26 -4
- wolfhece/PyParams.py +33 -0
- wolfhece/PyPictures.py +2 -2
- wolfhece/PyVertex.py +25 -0
- wolfhece/PyVertexvectors.py +94 -28
- wolfhece/PyWMS.py +52 -36
- wolfhece/acceptability/acceptability.py +15 -8
- wolfhece/acceptability/acceptability_gui.py +507 -360
- wolfhece/acceptability/func.py +80 -183
- wolfhece/apps/version.py +1 -1
- wolfhece/compare_series.py +480 -0
- wolfhece/drawing_obj.py +12 -1
- wolfhece/hydrology/Catchment.py +228 -162
- wolfhece/hydrology/Internal_variables.py +43 -2
- wolfhece/hydrology/Models_characteristics.py +69 -67
- wolfhece/hydrology/Optimisation.py +893 -182
- wolfhece/hydrology/PyWatershed.py +267 -165
- wolfhece/hydrology/SubBasin.py +185 -140
- wolfhece/hydrology/cst_exchanges.py +76 -1
- wolfhece/hydrology/forcedexchanges.py +413 -49
- wolfhece/hydrology/read.py +65 -5
- wolfhece/hydrometry/kiwis.py +14 -7
- wolfhece/insyde_be/INBE_func.py +746 -0
- wolfhece/insyde_be/INBE_gui.py +1776 -0
- wolfhece/insyde_be/__init__.py +3 -0
- wolfhece/interpolating_raster.py +366 -0
- wolfhece/irm_alaro.py +1457 -0
- wolfhece/irm_qdf.py +889 -57
- wolfhece/lazviewer/laz_viewer.py +4 -1
- wolfhece/lifewatch.py +6 -3
- wolfhece/picc.py +124 -8
- wolfhece/pyLandUseFlanders.py +146 -0
- wolfhece/pydownloader.py +35 -1
- wolfhece/pywalous.py +225 -31
- wolfhece/toolshydrology_dll.py +149 -0
- wolfhece/wolf_array.py +63 -25
- {wolfhece-2.2.38.dist-info → wolfhece-2.2.40.dist-info}/METADATA +3 -1
- {wolfhece-2.2.38.dist-info → wolfhece-2.2.40.dist-info}/RECORD +50 -41
- {wolfhece-2.2.38.dist-info → wolfhece-2.2.40.dist-info}/WHEEL +0 -0
- {wolfhece-2.2.38.dist-info → wolfhece-2.2.40.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.2.38.dist-info → wolfhece-2.2.40.dist-info}/top_level.txt +0 -0
wolfhece/hydrometry/kiwis.py
CHANGED
@@ -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.
|
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
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
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.':
|