repair multi segment sweeps for v2

Some of the code relies on checking the sweepData length so make it the same as the requested number of datapoints
pull/190/head
Mark Zachmann 2020-06-20 07:55:31 -04:00
rodzic 48eb788bc9
commit da864ea008
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -185,6 +185,8 @@ class NanoVNAV2(VNA):
def setSweep(self, start, stop):
if(len(self.sweepData) != self.datapoints) :
self.sweepData = [(0, 0)] * self.datapoints
step = (stop - start) / (self.datapoints - 1)
if start == self.sweepStartHz and step == self.sweepStepHz:
return