def getSerialPumps(): ''' Assumes that the pumps are XCaliburD pumps and returns a list of (<serial port>, <instantiated XCaliburD>) tuples ''' pump_list = findSerialPumps() return [(ser_port, XCaliburD(com_link=TecanAPISerial(0, ser_port, 9600))) for ser_port, _, _ in pump_list]
def getSerialPumps(self): pump_list = self.findSerialPumps() return [(ser_port, XCaliburD(com_link=TecanAPISerial(0,ser_port, 9600))) for ser_port, _, _ in pump_list]
def findSerialPumps(self): return TecanAPISerial.findSerialPumps()