Support extensible enums #238
Labels
bug
Something isn't working
enhancement
New feature or request
hackathon
Good issues for the upcoming bluesky hackathon
i22
For the Aravis detector, we need to support a dynamically extensible enumeration of values for some signals (e.g. the AravisTriggerSource, which we rely on the values Free_Run and Line_1 being present, but there may also be Line_2, Line_3...).
This may be accomplished by a new class of Signal that has a write_pv of type Enum and a read_pv of type str, which would require SignalBackend to take two generic arguments. The existing Signal implementations then have a single Generic bound which is passed into both generic bounds of the backend and the new implementation has bounds of [str, enum_class] for read, write respectively.
This ticket is necessary for #190
The text was updated successfully, but these errors were encountered: