bluesky / ophyd-async

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

Investigate using stricter units on signals #657

Open DominicOram opened 3 days ago

DominicOram commented 3 days ago

As an MX DAQ developer we often have issues where we get confused about what units physical quantities are being expressed in (e.g. https://github.com/DiamondLightSource/mx-bluesky/issues/220). It may be useful if we could be more strict about this in the code by leveraging something like pint. This would mean signals are set with Quantities that have units and will throw exceptions if the units given in the EGU field of the PV do not match. This is a spike to do the investigation on how hard this would be and what an interface would look like.

Acceptance Criteria