-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deserialise plan method arguments by replacing types instead of build…
…ing custom validators (#154) * Improve support for bluesky type deserialisation Plans that reference bluesky types need an intermediate step in the deserialisation process to allow them to be referenced by name only. Types in plan signatures are now converted to a runtime generated type that can access the context where the plan will be run allowing pydantic to ensure that devices are present and are of the correct type. * Change type conversion functions into methods Functions took an instance of context as an argument and were only called from within existing context methods so it makes more sense for them to be instance methods of the BlueskyContext instead of standalone functions. * Handle lazily evaluated types in type conversion * Add test for concrete type conversion --------- Co-authored-by: Peter Holloway <[email protected]>
- Loading branch information
Showing
7 changed files
with
188 additions
and
1,041 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
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.