Open
Description
I wish to pass a parameter to a protocol after it has been uploaded to the robot. This would allow things like changing how many wells are dispensed into without having numerous similar protocols.
What is the recommended way (if any) to pass parameters that can be read by a protocol file?
I can't see an obvious way of passing parameters to the protocol file when uploading a protocol (POST /protocols
) or creating a run for a protocol (POST /runs
) via the HTTP API.
Ultimately I want the protocol to be able to accept parameters like this:
from opentrons import protocol_api
def run(protocol: protocol_api.ProtocolContext, num_wells: int):
# use `num_wells`...
I noticed that protocol
has a bundled_data
attribute, but that only seems to be useable when uploading a protocol via the CLI and not the HTTP API, correct?
Metadata
Metadata
Assignees
Labels
No labels