|
27 | 27 | @PydanticResponse.wrap_route( |
28 | 28 | router.put, |
29 | 29 | path="/deck_configuration", |
30 | | - summary="Set the deck configuration", |
| 30 | + summary="Set the Flex deck configuration", |
31 | 31 | description=( |
32 | 32 | "Inform the robot how its deck is physically set up." |
33 | 33 | "\n\n" |
|
38 | 38 | " configuration, such as loading a labware into a staging area slot that this deck" |
39 | 39 | " configuration doesn't provide, the run command will fail with an error." |
40 | 40 | "\n\n" |
| 41 | + "After you set the deck configuration, it will persist, even across reboots," |
| 42 | + " until you set it to something else." |
| 43 | + "\n\n" |
41 | 44 | "**Warning:**" |
42 | 45 | " Currently, you can call this endpoint at any time, even while there is an active run." |
43 | 46 | " However, the robot can't adapt to deck configuration changes in the middle of a run." |
44 | 47 | " The robot will effectively take a snapshot of the deck configuration when the run is" |
45 | 48 | " first played. In the future, this endpoint may error if you try to call it in the middle" |
46 | 49 | " of an active run, so don't rely on being able to do that." |
47 | 50 | "\n\n" |
48 | | - "After you set the deck configuration, it will persist, even across reboots," |
49 | | - " until you set it to something else." |
| 51 | + "**Warning:** Only use this on Flex robots, never OT-2 robots. The behavior on" |
| 52 | + " OT-2 robots is currently undefined and it may interfere with protocol execution." |
50 | 53 | ), |
51 | 54 | responses={ |
52 | 55 | fastapi.status.HTTP_200_OK: { |
@@ -86,10 +89,13 @@ async def put_deck_configuration( # noqa: D103 |
86 | 89 | @PydanticResponse.wrap_route( |
87 | 90 | router.get, |
88 | 91 | path="/deck_configuration", |
89 | | - summary="Get the deck configuration", |
| 92 | + summary="Get the Flex deck configuration", |
90 | 93 | description=( |
91 | 94 | "Get the robot's current deck configuration." |
92 | 95 | " See `PUT /deck_configuration` for background information." |
| 96 | + "\n\n" |
| 97 | + "**Warning:** The behavior of this endpoint is currently only defined for Flex" |
| 98 | + " robots, not OT-2 robots." |
93 | 99 | ), |
94 | 100 | responses={ |
95 | 101 | fastapi.status.HTTP_200_OK: { |
|
0 commit comments