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

fixed imports

parent 89bf19d8
No related branches found
No related tags found
4 merge requests!271Static expansion of regular expressions,!260Follow-Up Translations,!237Flagger Translations,!232WIP: Fuzzy testing
......@@ -3,7 +3,8 @@
__version__ = "1.4"
from saqc.core.core import SaQC
# import order: from small to big
from saqc.common import *
from saqc.flagger import *
from saqc.core.register import register
from saqc.core.core import SaQC
#!/usr/bin/env python
from numpy import nan as _nan
__all__ = [
"UNTOUCHED",
"UNFLAGGED",
"DOUBTFUL",
"BAD",
"GOOD",
"DOUBT",
]
UNTOUCHED = _nan
import numpy as np
UNTOUCHED = np.nan
UNFLAGGED = 0
DOUBTFUL = 25
BAD = 255
......@@ -10,3 +19,5 @@ BAD = 255
# aliases
GOOD = UNFLAGGED
DOUBT = DOUBTFUL
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from saqc.core.core import SaQC, logger
from saqc.core.register import register
from saqc.core.core import SaQC, logger
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from .flags import Flagger, initFlagsLike
from .history import History
from .flags import Flagger, initFlagsLike
......@@ -11,6 +11,7 @@ from typing_extensions import Literal
from dios import DictOfSeries
from saqc.common import *
from saqc.core.register import register
from saqc.lib.tools import customRoller
from saqc.flagger import Flagger
......
......@@ -8,11 +8,11 @@ import pandas as pd
from dios import DictOfSeries
from saqc.common import *
from saqc.lib.types import *
from saqc.core.register import register
from saqc.flagger import Flagger
@register(masking='field', module="flagtools")
def clearFlags(data: DictOfSeries, field: ColumnName, flagger: Flagger, **kwargs) -> Tuple[DictOfSeries, Flagger]:
flagger = flagger.clearFlags(field, **kwargs)
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
__all__ = [
'T',
'ArrayLike',
'PandasLike',
'DiosLikeT',
'FuncReturnT',
'FreqString',
'ColumnName',
'IntegerWindow',
'TimestampColumnName',
'CurveFitter',
]
from typing import TypeVar, Union, NewType
from typing_extensions import Protocol, Literal
......@@ -7,13 +19,14 @@ from typing_extensions import Protocol, Literal
import numpy as np
import pandas as pd
from dios import DictOfSeries
from saqc import Flagger
T = TypeVar("T")
ArrayLike = TypeVar("ArrayLike", np.ndarray, pd.Series, pd.DataFrame)
PandasLike = TypeVar("PandasLike", pd.Series, pd.DataFrame, DictOfSeries)
DiosLikeT = Union[DictOfSeries, pd.DataFrame]
FuncReturnT = [dios.DictOfSeries, Flagger]
FuncReturnT = [DictOfSeries, Flagger]
# we only support fixed length offsets
FreqString = NewType("FreqString", Literal["D", "H", "T", "min", "S", "L", "ms", "U", "us", "N"])
......
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