diff options
Diffstat (limited to 'hardware/scope')
-rw-r--r-- | hardware/scope/sds1104x.py | 6 |
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; |