pcdshub / pcdsdevices

Collection of Ophyd device subclasses for IOCs unique to LCLS PCDS.
https://pcdshub.github.io/pcdsdevices/
Other
5 stars 58 forks source link

ENH: BTMS Camera Updates #1265

Closed slactjohnson closed 2 months ago

slactjohnson commented 2 months ago

Description

Adds new methods to return the defined happi database names for the cameras in each bay. Updates existing methods to get camera prefixes. This PR extends the flexibility of the existing implementation and adds some new properties while being backwards compatible.

Motivation and Context

closes #1264

How Has This Been Tested?

Tested interactively using the BTMS in the laser hall.

Where Has This Been Documented?

This PR, and a related PR on pcdshub/btms-ui.

Pre-merge checklist

slactjohnson commented 2 months ago

@tangkong The camera properties are used here: https://github.com/pcdshub/btms-ui/blob/11ca69588c6b301070c17a751180c618ea991f02/btms_ui/widgets.py#L843-L873

Currently the "bay" property is used to construct the device name, but these new properties will allow me to update this to use the defined device names directly.

tangkong commented 2 months ago

Gotcha, thanks! https://github.com/pcdshub/btms-ui/pull/16 Looks like an improvement to me