File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 66import time
77from typing import List , Optional , Union
88
9- from pylibftdi import driver
9+ try :
10+ from pylibftdi import driver
11+
12+ HAS_PYLIBFTDI = True
13+ except ImportError as e :
14+ HAS_PYLIBFTDI = False
15+ _FTDI_IMPORT_ERROR = e
1016
1117from pylabrobot import utils
1218from pylabrobot .io .ftdi import FTDI
2430# Make pylibftdi scan the CLARIOstar VID:PID
2531# appears as ID 0403:bb68 Future Technology Devices International Limited CLARIOstar
2632
27- driver .USB_VID_LIST .append (0x0403 ) # i.e. 1027
28- driver .USB_PID_LIST .append (0xBB68 ) # i.e. 47976
33+ if HAS_PYLIBFTDI :
34+ driver .USB_VID_LIST .append (0x0403 ) # i.e. 1027
35+ driver .USB_PID_LIST .append (0xBB68 ) # i.e. 47976
2936
3037
3138class CLARIOStarBackend (PlateReaderBackend ):
You can’t perform that action at this time.
0 commit comments