def _check_devtype(self): if self.devtype != 'HDAWG8' and self.devtype != 'HDAWG4': raise zibase.ziDeviceError( 'Device {} of type {} is not a HDAWG instrument!'.format( self.devname, self.devtype))
def _check_devtype(self) -> None: if self.devtype != 'UHFQA': raise zibase.ziDeviceError( 'Device {} of type {} is not a UHFQA instrument!'.format( self.devname, self.devtype))
def _check_devtype(self): if self.devtype != 'PQSC': raise zibase.ziDeviceError('Device {} of type {} is not a PQSC \ instrument!'.format(self.devname, self.devtype))