Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
OnnoEbbens committed Sep 27, 2024
1 parent a17947b commit 2765ece
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hydropandas/io/knmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2765ece

Please sign in to comment.