Skip to content

Commit

Permalink
chore(docs): touch up trash bin line on docs homepage (#14492)
Browse files Browse the repository at this point in the history
* revert 2.17 changes

* fix trash line on homepage

* named location arg
  • Loading branch information
ecormany authored Feb 15, 2024
1 parent bcd312d commit e009f3a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion api/docs/v2/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ For example, if we wanted to transfer liquid from well A1 to well B1 on a plate,
# protocol run function
def run(protocol: protocol_api.ProtocolContext):
# labware
trash = protocol.load_trash_bin("A3")
plate = protocol.load_labware(
"corning_96_wellplate_360ul_flat", location="D1"
)
tiprack = protocol.load_labware(
"opentrons_flex_96_tiprack_200ul", location="D2"
)
trash = protocol.load_trash_bin(location="A3")
# pipettes
left_pipette = protocol.load_instrument(
Expand Down
2 changes: 1 addition & 1 deletion api/docs/v2/new_examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ This code only loads the instruments and labware listed above, and performs no o
load_name="usascientific_12_reservoir_22ml", location="D1"
)
# load trash bin in deck slot A3
trash = protocol.load_trash_bin("A3")
trash = protocol.load_trash_bin(location="A3")
# Put protocol commands here
.. tab:: OT-2
Expand Down
5 changes: 0 additions & 5 deletions api/docs/v2/versioning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ This table lists the correspondence between Protocol API versions and robot soft
Changes in API Versions
=======================

Version 2.17
------------

- :py:meth:`.dispense` will now raise an error if you try to dispense more than is available.

Version 2.16
------------

Expand Down
4 changes: 0 additions & 4 deletions api/src/opentrons/protocol_api/instrument_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,6 @@ def dispense( # noqa: C901
.. versionchanged:: 2.15
Added the ``push_out`` parameter.
.. versionchanged:: 2.17
Now raises an exception if you try to dispense more than is available.
Previously, it would silently clamp.
"""
if self.api_version < APIVersion(2, 15) and push_out:
raise APIVersionError(
Expand Down

0 comments on commit e009f3a

Please sign in to comment.