Skip to content

Commit

Permalink
fixed sonarcloud bug
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Jun 12, 2024
1 parent d2e44b5 commit c057c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kenmerkendewaarden/data_retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}')
Expand Down

0 comments on commit c057c24

Please sign in to comment.