From d829a3d0862633110444db7043b80ce061075280 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sat, 13 Jul 2024 17:37:52 -0400 Subject: if var == None --> if var is None --- qolab/data/trace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qolab/data') 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 -- cgit v1.2.3