bluesky / ophyd

hardware abstraction in Python with an emphasis on EPICS
https://blueskyproject.io/ophyd
BSD 3-Clause "New" or "Revised" License
51 stars 79 forks source link

BUG: Let channelsim work with enums #1093

Closed tizayi closed 1 year ago

tizayi commented 1 year ago

Channel sim can now initialise simulated values for python Enum data types.

coretl commented 1 year ago

Please can we have a test for this? I suggest something like this: https://github.com/bluesky/ophyd/blob/5a0f1f3e8c2f453eb5a3262c610714bee67f84db/ophyd/v2/tests/test_epicsdemo.py#L86-L101 But for epicsdemo.Sensor that already has an Enum type defined for it, but has never been created in tests with sim=True