Skip to content

Commit

Permalink
docs(api): fixes to protocol examples (#16545)
Browse files Browse the repository at this point in the history
Fixed minor typos in api/docs/v2/new_examples.rst

<!--
Thanks for taking the time to open a Pull Request (PR)! Please make sure
you've read the "Opening Pull Requests" section of our Contributing
Guide:


https://github.com/Opentrons/opentrons/blob/edge/CONTRIBUTING.md#opening-pull-requests

GitHub provides robust markdown to format your PR. Links, diagrams,
pictures, and videos along with text formatting make it possible to
create a rich and informative PR. For more information on GitHub
markdown, see:


https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax

To ensure your code is reviewed quickly and thoroughly, please fill out
the sections below to the best of your ability!
-->

# Overview

<!--
Describe your PR at a high level. State acceptance criteria and how this
PR fits into other work. Link issues, PRs, and other relevant resources.
-->

## Test Plan and Hands on Testing
No need testing

Closes AUTH-963
<!--
Describe your testing of the PR. Emphasize testing not reflected in the
code. Attach protocols, logs, screenshots and any other assets that
support your testing.
-->

## Changelog

<!--
List changes introduced by this PR considering future developers and the
end user. Give careful thought and clear documentation to breaking
changes.
-->

## Review requests
Look at the changes please
<!--
- What do you need from reviewers to feel confident this PR is ready to
merge?
- Ask questions.
-->

## Risk assessment
Low
<!--
- Indicate the level of attention this PR needs.
- Provide context to guide reviewers.
- Discuss trade-offs, coupling, and side effects.
- Look for the possibility, even if you think it's small, that your
change may affect some other part of the system.
- For instance, changing return tip behavior may also change the
behavior of labware calibration.
- How do your unit tests and on hands on testing mitigate this PR's
risks and the risk of future regressions?
- Especially in high risk PRs, explain how you know your testing is
enough.
-->
  • Loading branch information
Elyorcv authored Oct 23, 2024
1 parent 1deeb88 commit 3e0cd93
Showing 1 changed file with 14 additions and 15 deletions.
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

0 comments on commit 3e0cd93

Please sign in to comment.