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

introduced isflagged in register

parent 64670e1c
No related branches found
No related tags found
3 merge requests!271Static expansion of regular expressions,!260Follow-Up Translations,!237Flagger Translations
......@@ -237,7 +237,7 @@ def _maskData(data, flagger, columns, thresh) -> Tuple[dios.DictOfSeries, dios.D
# we use numpy here because it is faster
for c in columns:
col_mask = _getMask(flagger[c].to_numpy(), thresh)
col_mask = isflagged(flagger[c].to_numpy(), thresh)
if any(col_mask):
col_data = data[c].to_numpy(dtype=np.float64)
......@@ -249,7 +249,7 @@ def _maskData(data, flagger, columns, thresh) -> Tuple[dios.DictOfSeries, dios.D
return data, mask
def _getMask(flags: Union[np.array, pd.Series], thresh: float) -> Union[np.array, pd.Series]:
def isflagged(flags: Union[np.array, pd.Series], thresh: float) -> Union[np.array, pd.Series]:
"""
Return a mask of flags accordingly to `thresh`. Return type is same as 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