diff options
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 |