pylabrobot.thermocycling.opentrons_backend.OpentronsThermocyclerBackend#
- class pylabrobot.thermocycling.opentrons_backend.OpentronsThermocyclerBackend(opentrons_id: str)#
Bases:
ThermocyclerBackend
HTTP-API backend for the Opentrons GEN-1/GEN-2 Thermocycler.
All core functions are supported. run_profile() is fire-and-forget, since PCR runs can outlive the decorator’s default timeout.
Methods
__init__
(opentrons_id)Create a new backend bound to a specific thermocycler.
Close the thermocycler lid.
Deactivate the block heater.
Deactivate the lid heater.
deserialize
(data)Get the current block temperature in °C.
Get the block target temperature in °C.
Get the zero-based index of the current cycle from the Opentrons API.
Get the zero-based index of the current step from the Opentrons API.
Get remaining hold time in seconds.
Get the current lid temperature in °C.
Get the lid open/closed status.
Get the lid target temperature in °C.
Get the total cycle count.
Get the total number of steps in the current cycle.
open_lid
()Open the thermocycler lid.
run_profile
(profile, block_max_volume)Enqueue and return immediately (no wait) the PCR profile command.
Include the Opentrons module ID in serialized state.
set_block_temperature
(temperature)Set block temperature in °C.
set_lid_temperature
(temperature)Set lid temperature in °C.
setup
()No extra setup needed for HTTP-API thermocycler.
stop
()Gracefully deactivate both heaters.
- Parameters:
opentrons_id (str)