AGC = 2
LOCK = 3
- def __init__(self, type, *args, **kwargs):
- Converter.__init__(self)
+ def __init__(self, type):
+ Converter.__init__(self, type)
if type == "BER":
self.type = self.BER
elif type == "SNR":
return "%d %%" % (percent * 100 / 65536)
def getBool(self):
- assert self.type in [self.LOCK, selef.BER], "the boolean output of FrontendInfo can only be used for lock or BER info"
+ assert self.type in [self.LOCK, self.BER], "the boolean output of FrontendInfo can only be used for lock or BER info"
if self.type == self.LOCK:
return self.source.lock
- elif:
+ else:
return self.source.ber > 0
text = property(getText)