コード例 #1
0
 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))
コード例 #2
0
 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))
コード例 #3
0
ファイル: ZI_PQSC.py プロジェクト: QudevETH/PycQED_py3
 def _check_devtype(self):
     if self.devtype != 'PQSC':
         raise zibase.ziDeviceError('Device {} of type {} is not a PQSC \
             instrument!'.format(self.devname, self.devtype))