def timeout(self, value): return gpib.timeout(self.id, value)
def get_gpib_device(port: int, timeout=0.5): device = gpib.dev(0, port) gpib.timeout(device, get_gpib_timeout(timeout)) return GpibInstrument(device)