Skip to content
Snippets Groups Projects
Commit 4870a750 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

small bug fixed

parent 0166d89c
No related branches found
No related tags found
No related merge requests found
......@@ -147,7 +147,7 @@ def flagConstants_VarianceBased(data, flags, field, flagger, plateau_window_min=
plateaus = pd.Series(np.flip(reverse_check.values), index=plateaus.index)
if isinstance(flags, pd.Series):
flags.loc[plateaus.index] = flagger.setFlag(flags.loc[plateaus.index], **kwargs)
flags.loc[plateaus] = flagger.setFlag(flags.loc[plateaus], **kwargs)
else:
flags.loc[plateaus.index, field] = flagger.setFlag(flags.loc[plateaus.index, field], **kwargs)
flags.loc[plateaus, field] = flagger.setFlag(flags.loc[plateaus, field], **kwargs)
return data, flags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment