aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-13 17:37:52 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-13 17:37:52 -0400
commitd829a3d0862633110444db7043b80ce061075280 (patch)
tree23b908d5e4c886faa3153d49f11e06169c71b8a2
parent88013bab26cb61f8ee96599a518fbea855544d5b (diff)
downloadqolab-d829a3d0862633110444db7043b80ce061075280.tar.gz
qolab-d829a3d0862633110444db7043b80ce061075280.zip
if var == None --> if var is None
-rw-r--r--qolab/data/trace.py4
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