-
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.
refactor(api): create micro-operations for motion and pipetting (#16857)
Make some intermediates for `move_to_well` and the pipetting operations that can handle and format exceptions and pass defined errors upstream. In addition, make some state update changes that will pave the way for having multiple micro-operations that can fail in each command, and get rid of maybes. Specifically, - You can now chain `StateUpdate` setter calls - New classmethod `StateUpdate.reduce()` that does a reduce over a group of state updates - New "micro operations" in `pipetting_common` and new `movement_common` that basically just do exception handling for things like `pipetting.aspirate_in_place()` and `movement.move_to_wells()` so that the commands can treat defined errors entirely as data - Give up on the `Maybe` experiment because it's really awful to chain async calls in python ## testing - No behavior should have changed. Some `state_update_if_false_positive`s are now full overrides instead of just extensions. Tests should cover this. Works toward EXEC-830
- Loading branch information
Showing
32 changed files
with
876 additions
and
805 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
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
Oops, something went wrong.