From e7d0bc079ae9b91914a8439bb080144325c6bf69 Mon Sep 17 00:00:00 2001 From: Bert Palm <bert.palm@ufz.de> Date: Fri, 5 Feb 2021 20:18:04 +0100 Subject: [PATCH] init fix --- saqc/flagger/backtrack.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/saqc/flagger/backtrack.py b/saqc/flagger/backtrack.py index eeedabf9b..522f2dc23 100644 --- a/saqc/flagger/backtrack.py +++ b/saqc/flagger/backtrack.py @@ -51,8 +51,10 @@ class Backtrack: # of the bt parameter and serve as a fastpath for internal # fast creation of a new BT, where no checks are needed. if isinstance(bt, Backtrack): - bt = bt.bt + # keep this order, otherwise bt.mask + # will refer to pd.Dataframe.mask mask = bt.mask + bt = bt.bt elif bt is None and mask is None: bt = pd.DataFrame() -- GitLab