Skip to content

Commit

Permalink
corrected comments
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Jun 17, 2024
1 parent 74bf06f commit 723d4b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kenmerkendewaarden/gemiddeldgetij.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def reshape_signal(ts, ts_ext, HW_goal, LW_goal, tP_goal=None):
time_down was scaled with havengetallen before, but not anymore to avoid issues with aggers
"""
# early escape # TODO: consider not calling function in this case
# early escape # TODO: should also be possible to only scale tP_goal
if HW_goal is None and LW_goal is None:
return ts

Expand Down
2 changes: 1 addition & 1 deletion tests/test_slotgemiddelden.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_calc_slotgemiddelden_with_gap(df_meas_2010_2014):
slotgemiddelden_dict_withgap = kw.calc_slotgemiddelden(df_meas=df_meas_withgap, df_ext=None, min_coverage=1)
slotgemiddelden_dict_withgap_lower_threshold = kw.calc_slotgemiddelden(df_meas=df_meas_withgap, df_ext=None, min_coverage=0.95)

# TODO: value to be updated, but should contain at least one nan value
# check if too large gap results in nan
assert slotgemiddelden_dict_nogap["wl_mean_peryear"].isnull().sum() == 0
assert slotgemiddelden_dict_withgap["wl_mean_peryear"].isnull().sum() == 1
assert slotgemiddelden_dict_withgap_lower_threshold["wl_mean_peryear"].isnull().sum() == 0
2 changes: 1 addition & 1 deletion tests/test_tidalindicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_calc_wltidalindicators_mincount(df_meas_2010_2014):
slotgemiddelden_dict_withgap = kw.calc_wltidalindicators(df_meas_withgap, min_coverage=1)
slotgemiddelden_dict_withgap_lower_threshold = kw.calc_wltidalindicators(df_meas_withgap, min_coverage=0.95)

# TODO: value to be updated, but should contain at least one nan value
# check if too large gap results in nan
assert slotgemiddelden_dict_nogap["wl_mean_peryear"].isnull().sum() == 0
assert slotgemiddelden_dict_withgap["wl_mean_peryear"].isnull().sum() == 1
assert slotgemiddelden_dict_withgap_lower_threshold["wl_mean_peryear"].isnull().sum() == 0
Expand Down

0 comments on commit 723d4b3

Please sign in to comment.