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

black

parent 8e695b8c
No related branches found
No related tags found
7 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!372fix doctest snippets,!369Current documentation
Pipeline #51257 failed with stages
in 1 minute and 6 seconds
......@@ -17,7 +17,6 @@ from saqc.lib.tools import squeezeSequence, toSequence
FUNC_MAP: Dict[str, Callable] = {}
class FunctionWrapper:
def __init__(
self,
......@@ -371,6 +370,7 @@ def register(
return inner
def _isflagged(flagscol: np.ndarray | pd.Series, thresh: float) -> np.array | pd.Series:
"""
Return a mask of flags accordingly to `thresh`. Return type is same as flags.
......@@ -382,4 +382,3 @@ def _isflagged(flagscol: np.ndarray | pd.Series, thresh: float) -> np.array | pd
return flagscol > UNFLAGGED
return flagscol >= thresh
......@@ -363,7 +363,6 @@ def flagDriftFromScaledNorm(
return data, flags
@register(handles="index", datamask="field")
def correctDrift(
data: DictOfSeries,
......
......@@ -238,7 +238,8 @@ def _plotVarWithFlags(
if len(flags_meta[i]) == 0:
continue
label = (
flags_meta[i]['kwargs'].get("label", None) or flags_meta[i]["func"].split(".")[-1]
flags_meta[i]["kwargs"].get("label", None)
or flags_meta[i]["func"].split(".")[-1]
)
scatter_kwargs.update({"label": label})
flags_i = flags_hist[i].astype(float)
......
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