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

[FIX] flagConstants: don't flag NaNs as constant

parent 6c8b8670
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ def flagConstants(
starting_points_mask = rolling.max() - rolling.min() <= thresh
rolling = customRoller(starting_points_mask, **kws, forward=True)
# mimic any()
mask = rolling.sum() > 0
mask = (rolling.sum() > 0) & d.notna()
flags[mask, field] = flag
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