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

Remove hard-coded information from the BTPS Screens #1270

Open slactjohnson opened 1 month ago

slactjohnson commented 1 month ago

Current Behavior

There's some information that's hard-coded into the BTPS screens, and is duplicated by information in btps.py.

Expected Behavior

Information is not duplicated.

Context / environment

The same (or similar) information is already build into btps.py . When updating the stage mapping I fixed it in the code but forgot to do it in the screen, which caused confusion. I want to prevent this in the future.

btps.py: https://github.com/pcdshub/pcdsdevices/blob/665c1f40c68894e28ae611bb7708b8f18cea403e/pcdsdevices/lasers/btps.py#L661-L714

Screens:

image

Related issue: https://github.com/pcdshub/pcdsdevices/issues/1269

Suggested Solution

Find a way to work the information present in btps.py into the screens. btps.py uses PVs, the screens use happi.... one method should be used, not both.