diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-13 17:37:52 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-13 17:37:52 -0400 |
commit | d829a3d0862633110444db7043b80ce061075280 (patch) | |
tree | 23b908d5e4c886faa3153d49f11e06169c71b8a2 /qolab | |
parent | 88013bab26cb61f8ee96599a518fbea855544d5b (diff) | |
download | qolab-d829a3d0862633110444db7043b80ce061075280.tar.gz qolab-d829a3d0862633110444db7043b80ce061075280.zip |
if var == None --> if var is None
Diffstat (limited to 'qolab')
-rw-r--r-- | qolab/data/trace.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qolab/data/trace.py b/qolab/data/trace.py index 1b2ea17..7601f6b 100644 --- a/qolab/data/trace.py +++ b/qolab/data/trace.py @@ -322,12 +322,12 @@ class TraceSetSameX(Trace): def addTrace(self, tr): if tr.config["model"] == "TraceXY": - if self.x == None: + if self.x is None: self.x = tr.x trY = tr.y self.traces[tr.config["label"]] = trY elif tr.config["model"] == "Trace": - if self.x == None: + if self.x is None: self.x = tr else: self.traces[tr.config["label"]] = tr |