def setImpedance(self, flag):
    ' Enable/disable impedance measure '
    self.impedance = bool(flag)
Enable/disable impedance measure
def setImpedance(self, flag):
    '  '
    self.impedance = bool(flag)