Skip to content
Snippets Groups Projects
Commit 0f8b0959 authored by David Schäfer's avatar David Schäfer
Browse files

changed flagIsolated behaviour

parent 093532d4
No related branches found
No related tags found
1 merge request!14WIP: Expose the function parameter 'field' to the config
Pipeline #2576 passed with stage
in 8 minutes and 57 seconds
......@@ -106,9 +106,9 @@ def flagIsolated(
stop = srs.index[-1]
if stop - start <= group_window:
left = mask[start - gap_window : start].iloc[:-1]
if left.count() and left.all():
if left.all():
right = mask[stop : stop + gap_window].iloc[1:]
if right.count() and right.all():
if right.all():
flags[start:stop] = True
flagger = flagger.setFlags(field, flags, **kwargs)
......@@ -119,4 +119,3 @@ def flagIsolated(
@register("dummy")
def flagDummyFunction(data, field, flagger, **kwargs):
return data, flagger
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