Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(api): fixes to protocol examples #16545

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions api/docs/v2/new_examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ Opentrons electronic pipettes can do some things that a human cannot do with a p
location=3)
p300 = protocol.load_instrument(
instrument_name="p300_single",
mount="right",
mount="left",
tip_racks=[tiprack_1])

p300.pick_up_tip()
Expand Down Expand Up @@ -442,13 +442,13 @@ This protocol dispenses diluent to all wells of a Corning 96-well plate. Next, i
source = reservoir.wells()[i]
row = plate.rows()[i]

# transfer 30 µL of source to first well in column
pipette.transfer(30, source, row[0], mix_after=(3, 25))
# transfer 30 µL of source to first well in column
pipette.transfer(30, source, row[0], mix_after=(3, 25))

# dilute the sample down the column
pipette.transfer(
30, row[:11], row[1:],
mix_after=(3, 25))
# dilute the sample down the column
pipette.transfer(
30, row[:11], row[1:],
mix_after=(3, 25))

.. tab:: OT-2

Expand All @@ -474,7 +474,7 @@ This protocol dispenses diluent to all wells of a Corning 96-well plate. Next, i
location=4)
p300 = protocol.load_instrument(
instrument_name="p300_single",
mount="right",
mount="left",
tip_racks=[tiprack_1, tiprack_2])
# Dispense diluent
p300.distribute(50, reservoir["A12"], plate.wells())
Expand All @@ -483,16 +483,15 @@ This protocol dispenses diluent to all wells of a Corning 96-well plate. Next, i
for i in range(8):
# save the source well and destination column to variables
source = reservoir.wells()[i]
source = reservoir.wells()[i]
row = plate.rows()[i]

# transfer 30 µL of source to first well in column
p300.transfer(30, source, row[0], mix_after=(3, 25))
# transfer 30 µL of source to first well in column
p300.transfer(30, source, row[0], mix_after=(3, 25))

# dilute the sample down the column
p300.transfer(
30, row[:11], row[1:],
mix_after=(3, 25))
# dilute the sample down the column
p300.transfer(
30, row[:11], row[1:],
mix_after=(3, 25))

Notice here how the code sample loops through the rows and uses slicing to distribute the diluent. For information about these features, see the Loops and Air Gaps examples above. See also, the :ref:`tutorial-commands` section of the Tutorial.

Expand Down
Loading