kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
Fix Chart crash when only one data line in .s1p
rodzic
cb1ef3608c
commit
cecff14019
|
@ -3839,7 +3839,7 @@ class GroupDelayChart(FrequencyChart):
|
||||||
for d in self.reference:
|
for d in self.reference:
|
||||||
rawReference.append(d.phase)
|
rawReference.append(d.phase)
|
||||||
|
|
||||||
if len(self.data) > 0:
|
if len(self.data) > 1:
|
||||||
unwrappedData = np.degrees(np.unwrap(rawData))
|
unwrappedData = np.degrees(np.unwrap(rawData))
|
||||||
self.groupDelay = []
|
self.groupDelay = []
|
||||||
for i in range(len(self.data)):
|
for i in range(len(self.data)):
|
||||||
|
@ -3859,7 +3859,7 @@ class GroupDelayChart(FrequencyChart):
|
||||||
delay /= 2
|
delay /= 2
|
||||||
self.groupDelay.append(delay)
|
self.groupDelay.append(delay)
|
||||||
|
|
||||||
if len(self.reference) > 0:
|
if len(self.reference) > 1:
|
||||||
unwrappedReference = np.degrees(np.unwrap(rawReference))
|
unwrappedReference = np.degrees(np.unwrap(rawReference))
|
||||||
self.groupDelayReference = []
|
self.groupDelayReference = []
|
||||||
for i in range(len(self.reference)):
|
for i in range(len(self.reference)):
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# MHz S RI R 50
|
||||||
|
28.000000 0.0 0.0
|
Ładowanie…
Reference in New Issue