DiamondLightSource / FastCS

Control system agnostic framework for building device support in Python for both EPICS and Tango
Apache License 2.0
1 stars 2 forks source link

Add support for mbbIn and mbbOut records #38

Open GDYendell opened 4 months ago

GDYendell commented 4 months ago

Add allowed_values field to attributes Use ComboBox for AttrRW with allowed_values

jsouter commented 3 months ago

Had a go at this here https://github.com/DiamondLightSource/FastCS/pull/40 Also works for if we have a string parameter with a list of allowed values, but may need a rework, as tries to use a common interface for both cases where we provide a mapping of {<label_name>: <value>} where the label_name is the same as value for strings. Could be simplified to just a list of labels if we enforce that all mbbo/mbbi types will only use the enum values from 0 increasing without skipping any. (e.g. currently we could have{"label0": 0, "label2": 2})