Skip to content
Snippets Groups Projects

Pump waiting times

Merged Christoph Lange requested to merge pump_waiting_times into main
3 files
+ 76
38
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -10,14 +10,25 @@ from ismatec_pump.pump import ImatecPump
import logging
logger = logging.getLogger(__file__)
logger = logging.getLogger(__name__)
class IsmatecPumpServicer(
PumpServicer
):
def establish_connection(self: Self, pump_port: str, tube_id) -> None:
self.pump = ImatecPump(pump_port, tube_id)
def establish_connection(
self: Self,
pump_port: str,
tube_id: int,
timeout: float,
inter_byte_timeout: float,
) -> None:
self.pump = ImatecPump(
port=pump_port,
tube_id=tube_id,
timeout=timeout,
inter_byte_timeout=inter_byte_timeout,
)
self.pump_state = {
channel_idx: {
"direction": "cw",
Loading