aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-21 00:38:36 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-21 00:38:36 -0500
commit18fc472a16feceecad4310afad510d24f266ad24 (patch)
tree2d48dabf39e55bc03f0aca32d042fbecffaa1cb1
parentd453038c6f2f3e81dab81016e11dca62cd8b0407 (diff)
downloadqolab-18fc472a16feceecad4310afad510d24f266ad24.tar.gz
qolab-18fc472a16feceecad4310afad510d24f266ad24.zip
check against non existing 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':