You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We get a confusing error from raise_extremes_with_aggers(): "ValueError: df_ext should only contain extremes (HWLWcode 1/2), but it also contains aggers (HWLWcode 3/4/5). You can convert with hatyan.calc_HWLW12345to12()". When fixing this, we get "ValueError: cannot convert float NaN to integer" from kw.havengetallen.calc_HWLW_moonculm_combi(). Consider catching empty dataframes (both wl and ext) troughout kenmerkendewaarden code.
The text was updated successfully, but these errors were encountered:
Prevented this issue in raise_extremes_with_aggers() by improving it, but since empty dataframes raise different errors throughout the code, one should just not work with them. Does not make sense to add checks to each function.
When calling
kw.calc_havengetallen()
with an empty dataframe like so:We get a confusing error from
raise_extremes_with_aggers()
:"ValueError: df_ext should only contain extremes (HWLWcode 1/2), but it also contains aggers (HWLWcode 3/4/5). You can convert with
hatyan.calc_HWLW12345to12()"
. When fixing this, we get"ValueError: cannot convert float NaN to integer"
fromkw.havengetallen.calc_HWLW_moonculm_combi()
. Consider catching empty dataframes (both wl and ext) troughout kenmerkendewaarden code.The text was updated successfully, but these errors were encountered: