From b823eb763c5885bc0d2dc1aface8966326a877a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20L=C3=BCnenschlo=C3=9F?= <peter.luenenschloss@ufz.de> Date: Sat, 20 Apr 2024 14:47:41 +0200 Subject: [PATCH] make annotatedFloatScheme available through string selection --- saqc/__init__.py | 8 +++++++- saqc/core/core.py | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/saqc/__init__.py b/saqc/__init__.py index 29e0b55c5..a801471cf 100644 --- a/saqc/__init__.py +++ b/saqc/__init__.py @@ -10,7 +10,13 @@ from saqc.constants import BAD, DOUBTFUL, FILTER_ALL, FILTER_NONE, GOOD, UNFLAGGED from saqc.exceptions import ParsingError from saqc.core import Flags, DictOfSeries, SaQC -from saqc.core.translation import DmpScheme, FloatScheme, PositionalScheme, SimpleScheme +from saqc.core.translation import ( + DmpScheme, + FloatScheme, + PositionalScheme, + SimpleScheme, + AnnotatedFloatScheme, +) from saqc.parsing.reader import fromConfig from saqc.version import __version__ diff --git a/saqc/core/core.py b/saqc/core/core.py index c1c9d7451..c669da567 100644 --- a/saqc/core/core.py +++ b/saqc/core/core.py @@ -22,6 +22,7 @@ from saqc.core.frame import DictOfSeries from saqc.core.history import History from saqc.core.register import FUNC_MAP from saqc.core.translation import ( + AnnotatedFloatScheme, DmpScheme, FloatScheme, PositionalScheme, @@ -41,6 +42,7 @@ TRANSLATION_SCHEMES = { "float": FloatScheme, "dmp": DmpScheme, "positional": PositionalScheme, + "annotated-float": AnnotatedFloatScheme, } -- GitLab