From df4e375442bf0cc5d4056625e1098f43a9de4bda Mon Sep 17 00:00:00 2001 From: fluthi Date: Thu, 16 Aug 2018 15:58:02 +0200 Subject: [PATCH] Changing back the if statement --- pycqed/analysis_v2/base_analysis.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pycqed/analysis_v2/base_analysis.py b/pycqed/analysis_v2/base_analysis.py index 0e95e47e8c..9da78358a9 100644 --- a/pycqed/analysis_v2/base_analysis.py +++ b/pycqed/analysis_v2/base_analysis.py @@ -137,6 +137,8 @@ def __init__(self, t_start: str = None, t_stop: str = None, # These options determine what data to extract # ################################################ scan_label = self.options_dict.get('scan_label', label) + if scan_label is None: + scan_label = '' if type(scan_label) is not list: self.labels = [scan_label] else: