aboutsummaryrefslogtreecommitdiff
path: root/qolab/data
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/data')
-rw-r--r--qolab/data/trace.py3
1 files changed, 2 insertions, 1 deletions
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':