bluesky / ophyd-async

Hardware abstraction for bluesky written using asyncio
https://blueskyproject.io/ophyd-async
BSD 3-Clause "New" or "Revised" License
11 stars 24 forks source link

Move Flyable dataclasses to pydantic dataclasses #435

Closed olliesilvester closed 2 months ago

olliesilvester commented 3 months ago

After discussion with @coretl , we think it would be nice to convert our dataclasses for flyable information, eg TriggerInfo in detector.py, to pydantic dataclasses, as this would give us runtime type validation. See https://github.com/bluesky/ophyd-async/pull/425 for an example

Acceptance Criteria

All dataclasses associated with a Flyable is now done in pydantic. I may have missed some, but these include:

evalott100 commented 3 months ago

Will include in

https://github.com/bluesky/ophyd-async/pull/430