diff --git a/saqc/flagger/backtrack.py b/saqc/flagger/backtrack.py index eeedabf9b2e27d72bb087f88ca90074665932c92..522f2dc239f6eceb5d04499650a0f9efde52e8f0 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()