@cached
def getText(self):
assert self.type != self.LOCK, "the text output of FrontendInfo cannot be used for lock info"
+ percent = None
if self.type == self.BER: # as count
count = self.source.ber
if count is not None:
elif self.type == self.SNR:
percent = self.source.snr
elif self.type == self.SNRdB:
- if self.source.snr is None:
- return "N/A"
- return "%3.02f dB" % (self.source.snr / 100.0)
+ if self.source.snr_db is not None:
+ return "%3.02f dB" % (self.source.snr_db / 100.0)
+ elif self.source.snr is not None: #fallback to normal SNR...
+ percent = self.source.snr
if percent is None:
return "N/A"