-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract rtp definitions and set rtp values in runner load
- Loading branch information
Showing
11 changed files
with
282 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from opentrons import protocol_api | ||
|
||
metadata = { | ||
"protocolName": "Testosaur with RTP", | ||
"author": "Opentrons <[email protected]>", | ||
"description": 'A variant on "Dinosaur" for testing with Run time parameters', | ||
"source": "Opentrons Repository", | ||
"apiLevel": "2.18", | ||
} | ||
|
||
|
||
def add_parameters(parameters: protocol_api.ParameterContext) -> None: | ||
parameters.add_int( | ||
display_name="Sample count", | ||
variable_name="sample_count", | ||
default=3, | ||
minimum=1, | ||
maximum=6, | ||
description="How many samples to process.", | ||
) | ||
parameters.add_str( | ||
display_name="Mount", | ||
variable_name="mount", | ||
choices=[ | ||
{"display_name": "Left Mount", "value": "left"}, | ||
{"display_name": "Right Mount", "value": "right"}, | ||
], | ||
default="left", | ||
description="What mount to use.", | ||
) | ||
|
||
|
||
def run(ctx: protocol_api.ProtocolContext) -> None: | ||
tip_rack = ctx.load_labware("opentrons_96_tiprack_300ul", 8) | ||
source = ctx.load_labware("nest_12_reservoir_15ml", 1) | ||
dest = ctx.load_labware("corning_96_wellplate_360ul_flat", 2) | ||
|
||
pipette = ctx.load_instrument("p300_single_gen2", ctx.params.mount, [tip_rack]) # type: ignore[attr-defined] | ||
|
||
for i in range(ctx.params.sample_count): # type: ignore[attr-defined] | ||
pipette.pick_up_tip() | ||
pipette.aspirate(50, source.wells_by_name()["A1"]) | ||
pipette.dispense(50, dest.wells()[i]) | ||
pipette.return_tip() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.