pcdshub / hutch-python

Launcher and config reader for LCLS interactive IPython sessions
https://pcdshub.github.io/hutch-python/
Other
0 stars 18 forks source link

ENH: add option to limit devices loaded via `load_level` conf.yaml key #379

Closed tangkong closed 6 months ago

tangkong commented 6 months ago

Description

Adds load_level as a conf.yaml key that allows hutches to choose how many ophyd devices get loaded. Currently includes 3 options:

Motivation and Context

https://jira.slac.stanford.edu/browse/ECS-5079

Summary: We found that some hutches were loading many irrelevant devices. TMO was catching CXI devices, XPP was catching XRT devices, etc. This was found to be a result of the beamline field matching procedure.

At some point I'd love to add a "hutch only" option, but there's no simple way to implement that currently. This framework should support it though.

How Has This Been Tested?

Interactively with a tmopython profile, added a test case

Where Has This Been Documented?

This PR, the jira ticket

Pre-merge checklist