From 4c8037af5cc6756d81aa4569c2f66fc08ebb7db2 Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Tue, 9 Nov 2021 16:39:12 +0100 Subject: [PATCH] Convenience fix for restoring chain-merged scans --- pyzebra/ccl_process.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyzebra/ccl_process.py b/pyzebra/ccl_process.py index 6ba08f6..7867e86 100644 --- a/pyzebra/ccl_process.py +++ b/pyzebra/ccl_process.py @@ -149,6 +149,10 @@ def restore_scan(scan): tmp = scan["init_scan"] scan.clear() scan.update(tmp) + # force scan export to True, otherwise in the sequence of incorrectly merged scans + # a <- b <- c the scan b will be restored with scan["export"] = False if restoring executed + # in the same order, i.e. restore a -> restore b + scan["export"] = True def fit_scan(scan, model_dict, fit_from=None, fit_to=None):