From 021f13fd6931482ca65bbeb88e52b42041ce9e6a Mon Sep 17 00:00:00 2001
From: David Schaefer <david.schaefer@ufz.de>
Date: Tue, 1 Dec 2020 09:35:59 +0100
Subject: [PATCH] Flagger: bring the undead back to life

---
 saqc/flagger/baseflagger.py | 1 +
 saqc/flagger/dmpflagger.py  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/saqc/flagger/baseflagger.py b/saqc/flagger/baseflagger.py
index 9c6ba4fbe..edb275bba 100644
--- a/saqc/flagger/baseflagger.py
+++ b/saqc/flagger/baseflagger.py
@@ -36,6 +36,7 @@ class BaseFlagger(ABC):
     def __init__(self, dtype):
         # NOTE: the type of the _flags DictOfSeries
         self.dtype = dtype
+        self.extra_defaults = dict()
         # NOTE: the arggumens of setFlags supported from
         #       the configuration functions
         self.signature = ("flag",)
diff --git a/saqc/flagger/dmpflagger.py b/saqc/flagger/dmpflagger.py
index bb2eb8ef5..42844b19a 100644
--- a/saqc/flagger/dmpflagger.py
+++ b/saqc/flagger/dmpflagger.py
@@ -38,6 +38,7 @@ class DmpFlagger(CategoricalFlagger):
     def __init__(self, **kwargs):
         super().__init__(FLAGS)
         self.flags_fields = [FlagFields.FLAG, FlagFields.CAUSE, FlagFields.COMMENT]
+        self.extra_defaults = dict(cause=FLAGS[0], comment="")
         self.signature = ("flag", "comment", "cause", "force")
 
         self._global_comments = kwargs
-- 
GitLab