aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-01 23:38:01 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-01 23:38:01 -0500
commite30d8525409aa4d6554ff64485decc1be25d31c1 (patch)
tree532f7fba14c860fd66a5963b2f0e196e391f7f55
parent16d018cedfe1c30f964caafa80649fcb8673b48e (diff)
downloadqolab-e30d8525409aa4d6554ff64485decc1be25d31c1.tar.gz
qolab-e30d8525409aa4d6554ff64485decc1be25d31c1.zip
improve readability around use of None
-rw-r--r--hardware/scope/sds1104x.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/hardware/scope/sds1104x.py b/hardware/scope/sds1104x.py
index b1bbc11..4a12b46 100644
--- a/hardware/scope/sds1104x.py
+++ b/hardware/scope/sds1104x.py
@@ -57,10 +57,10 @@ class SDS1104X(ScopeSCPI):
return(int(float(numberString)))
def calcSparsingAndNumPoints(self, availableNpnts=None, maxRequiredPoints=None):
- if availableNpnts == None:
+ if availableNpnts is None:
# using channel 1 to get availableNpnts
availableNpnts = self.getAvailableNumberOfPoints(1)
- if maxRequiredPoints == None:
+ if maxRequiredPoints is None:
maxRequiredPoints = self.maxRequiredPoints
if availableNpnts <= maxRequiredPoints*2:
@@ -144,7 +144,7 @@ class SDS1104X(ScopeSCPI):
sampleRate = self.getSampleRate()
timePerDiv = self.getTimePerDiv()
trigDelay = self.getTrigDelay()
- if Npnts == None and sparsing == None:
+ if Npnts is None and sparsing is None:
# using channel 1 as reference
Npnts = self.getAvailableNumberOfPoints(1)
t = np.arange(Npnts) / sampleRate * sparsing;