-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): support an "experimental" api version
Add the ability to specify a protocol's API level as "experimental", and to specify API calls as experimental. The experimental API level is greater than any named API level. That means that - An api method that is experimental can only be used if the protocol requests the experimental api level - This will remain true as the max supported api version changes
- Loading branch information
Showing
3 changed files
with
90 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
from .types import APIVersion | ||
|
||
MAX_SUPPORTED_VERSION = APIVersion(2, 23) | ||
"""The maximum supported protocol API version in this release.""" | ||
|
||
MIN_SUPPORTED_VERSION = APIVersion(2, 0) | ||
"""The minimum supported protocol API version in this release, across all robot types.""" | ||
|
||
MIN_SUPPORTED_VERSION_FOR_FLEX = APIVersion(2, 15) | ||
"""The minimum protocol API version supported by the Opentrons Flex. | ||
It's an infrastructural requirement for this to be at least newer than 2.14. Before then, | ||
the protocol API is backed by the legacy non-Protocol-engine backend, which is not prepared to | ||
handle anything but OT-2s. | ||
The additional bump to 2.15 is because that's what we tested on, and because it adds all the | ||
Flex-specific features. | ||
""" | ||
from .types import ( | ||
MAX_SUPPORTED_VERSION, | ||
MIN_SUPPORTED_VERSION, | ||
MIN_SUPPORTED_VERSION_FOR_FLEX, | ||
) | ||
|
||
|
||
__all__ = [ | ||
"MAX_SUPPORTED_VERSION", | ||
"MIN_SUPPORTED_VERSION", | ||
"MIN_SUPPORTED_VERSION_FOR_FLEX", | ||
] |
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