From 2765eceb108aa2694ddd81a486034f61a9a40514 Mon Sep 17 00:00:00 2001 From: OnnoEbbens Date: Fri, 27 Sep 2024 12:43:00 +0200 Subject: [PATCH] ruff --- hydropandas/io/knmi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hydropandas/io/knmi.py b/hydropandas/io/knmi.py index c3ea9b8c..74695b0a 100644 --- a/hydropandas/io/knmi.py +++ b/hydropandas/io/knmi.py @@ -484,7 +484,9 @@ def get_station_name(stn: int, stations: Union[pd.DataFrame, None] = None) -> st stn_name = stations.at[stn, "name"] if isinstance(stn_name, pd.Series): - raise ValueError(f'station {stn} is a meteo- and a precipitation station, please indicate which one you want to use using a "meteo_var"') + raise ValueError( + f'station {stn} is a meteo- and a precipitation station, please indicate which one you want to use using a "meteo_var"' + ) stn_name = stn_name.upper().replace(" ", "-").replace("(", "").replace(")", "") return stn_name