pylabrobot.liquid_handling.backends.websocket.WebSocketBackend#
- class pylabrobot.liquid_handling.backends.websocket.WebSocketBackend(num_channels: int, ws_host: str = '127.0.0.1', ws_port: int = 2121)#
Bases:
SerializingBackend
A backend that hosts a websocket server and sends commands over it.
Attributes
The event loop.
The number of channels that the robot has.
The future that is set when the web socket is stopped.
The thread that runs the event loop.
The websocket connection.
Methods
__init__
(num_channels[, ws_host, ws_port])Create a new web socket backend.
aspirate
(ops, use_channels)Aspirate liquid from the specified resource using pip.
aspirate96
(aspiration)Aspirate from all wells in 96 well plate.
assigned_resource_callback
(resource)Called when a new resource was assigned to the robot.
deserialize
(data)dispense
(ops, use_channels)Dispense liquid from the specified resource using pip.
dispense96
(dispense)Dispense to all wells in 96 well plate.
drop_resource
(drop, **backend_kwargs)Drop a resource like a plate or a lid using the integrated robotic arm.
drop_tips
(ops, use_channels)Drop tips from the specified resource.
drop_tips96
(drop)Drop tips to the specified resource using CoRe 96.
handle_event
(event, data)Handle an event from the browser.
Return
True
if a websocket connection has been established.move_channel_x
(channel, x)Move the specified channel to the specified x coordinate.
move_channel_y
(channel, y)Move the specified channel to the specified y coordinate.
move_channel_z
(channel, z)Move the specified channel to the specified z coordinate.
move_picked_up_resource
(move, **backend_kwargs)Move a picked up resource like a plate or a lid using the integrated robotic arm.
pick_up_resource
(pickup, **backend_kwargs)Pick up a resource like a plate or a lid using the integrated robotic arm.
pick_up_tips
(ops, use_channels)Pick up tips from the specified resource.
pick_up_tips96
(pickup)Pick up tips from the specified resource using CoRe 96.
prepare_for_manual_channel_operation
(channel)Prepare the robot for manual operation.
send_command
(command[, data, wait_for_response])Send an event to the browser.
set_deck
(deck)Set the deck for the robot.
setup
()Start the websocket server.
stop
()Stop the web socket server.
Called when a resource is unassigned from the robot.
Wait for a websocket connection to be established.