From c057c24eb344bc250a16ce9dacc207ca36edfb08 Mon Sep 17 00:00:00 2001 From: veenstrajelmer Date: Wed, 12 Jun 2024 15:27:05 +0200 Subject: [PATCH] fixed sonarcloud bug --- kenmerkendewaarden/data_retrieve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kenmerkendewaarden/data_retrieve.py b/kenmerkendewaarden/data_retrieve.py index 819c15a..bbe267d 100644 --- a/kenmerkendewaarden/data_retrieve.py +++ b/kenmerkendewaarden/data_retrieve.py @@ -260,7 +260,7 @@ def clip_timeseries_physical_break(df_meas): } #TODO: add physical_break for STAVNSE and KATSBTN? (Oosterscheldekering) station = df_meas.attrs["station"] - if not station in physical_break_dict.keys(): + if station not in physical_break_dict.keys(): logger.info(f'no physical_break defined for {station}, returning input timeseries') return df_meas @@ -283,7 +283,7 @@ def nap2005_correction(df_meas): 'VLISSGN':-0.0297} station = df_meas.attrs["station"] - if not station in dict_correct_nap2005.keys(): + if station not in dict_correct_nap2005.keys(): raise KeyError(f'NAP2005 correction not defined for {station}') logger.info(f'applying NAP2005 correction for {station}')