Skip to content
Snippets Groups Projects
Commit ad8703c6 authored by Bert Palm's avatar Bert Palm 🎇
Browse files

fixed constants.py

parent fc8ba246
No related branches found
No related tags found
4 merge requests!271Static expansion of regular expressions,!260Follow-Up Translations,!237Flagger Translations,!232WIP: Fuzzy testing
......@@ -74,7 +74,7 @@ def flagConstants(
m2 = r.max() - r.min() <= thresh
mask = m1 | m2
flagger = flagger.setFlags(field, mask, **kwargs)
flagger[mask, field] = kwargs['flag']
return data, flagger
......@@ -150,5 +150,5 @@ def flagByVariance(
# result:
plateaus = (plateaus[plateaus == 1.0]).index
flagger = flagger.setFlags(field, plateaus, **kwargs)
flagger[plateaus, field] = kwargs['flag']
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