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

APIv2 Docs #4120

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Update api/docs/source/v2/apiv2index.rst
Co-Authored-By: Seth Foster <[email protected]>
  • Loading branch information
wheresaddie and sfoster1 committed Sep 28, 2019
commit fe30f8eb143410f9a698dadbdf300ef490c2c2d1
2 changes: 1 addition & 1 deletion api/docs/source/v2/apiv2index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Opentrons API version 2 protocols are structured around a function called ``run(
def run(protocol: protocol_api.ProtocolContext):
pass

The function must be named exactly ``run`` and must take exactly one mandatory argument (we recommend ``protocol`` since this argument represents the protocol that the robot will execute and is easy to parse if another editor needs to impliment or resuse your code).
The function must be named exactly ``run`` and must take exactly one mandatory argument (we recommend ``protocol`` since this argument represents the protocol that the robot will execute and is easy to parse if another editor needs to implement or reuse your code).

The function ``run`` is the container for the code that defines your protocol. Protocols are similar to interfaces, in that they define a collection of methods an object must support.

Expand Down