diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-21 00:38:36 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-21 00:38:36 -0500 |
commit | 18fc472a16feceecad4310afad510d24f266ad24 (patch) | |
tree | 2d48dabf39e55bc03f0aca32d042fbecffaa1cb1 /qolab/data/trace.py | |
parent | d453038c6f2f3e81dab81016e11dca62cd8b0407 (diff) | |
download | qolab-18fc472a16feceecad4310afad510d24f266ad24.tar.gz qolab-18fc472a16feceecad4310afad510d24f266ad24.zip |
check against non existing data
Diffstat (limited to 'qolab/data/trace.py')
-rw-r--r-- | qolab/data/trace.py | 3 |
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': |