From 18fc472a16feceecad4310afad510d24f266ad24 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 21 Dec 2021 00:38:36 -0500 Subject: check against non existing data --- qolab/data/trace.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qolab/data/trace.py') diff --git a/qolab/data/trace.py b/qolab/data/trace.py index 555e5dc..9682af9 100644 --- a/qolab/data/trace.py +++ b/qolab/data/trace.py @@ -51,7 +51,8 @@ def loadTrace(fname): model = header['config']['model'] if model == 'Trace': tr = Trace(label) - tr.values = data + if data is not None: + tr.values = data elif 'model' == 'TraceXY': tr = TraceXY(label) elif 'model' == 'TraceSetSameX': -- cgit v1.2.3