-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ecs 6432 Add ability to ignore specific upstream devices in load #392
Conversation
… string of device names to exclude when loading. Added try-except for 'exclude_devices'. Pass exclude_devices as a list to get_happi_objs function.
…ient.search() results and removes devices that should not be loaded.
…y the results variable.
…ef get_happi_objs() to avoid mutable default arguments issue.
…moval of devices that shouldn't be loaded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments, but I think this looks pretty good on the whole.
...oming_release_notes/297-ECS-6432_Add_ability_to_ignore_specific_upstream_devices_in_load.rst
Outdated
Show resolved
Hide resolved
I agree that this looks good overall |
Co-authored-by: Zachary Lentz <ZLLentz@users.noreply.github.com>
…ulti-line array of strings or an actual list.
…nd test_happi_objs_with_exclude_devices() into one test.
Ah sorry one last thing: could you document the proper yaml setup in the https://github.com/pcdshub/hutch-python/blob/master/docs/source/yaml_files.rst There's been some back and forth as to how we specify these excluded devices and it'll be good to explicitly document this. |
Updated yaml_files.rst. I think everything looks good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Added a new feature that lets hutches exclude specific upstream devices when loading.
Description
Refactored parts of
get_happi_objs()
function, so it's only necessary to check thecontainers
variable once at the end of the function and removed specific upstream devices fromcontainers
.Motivation and Context
Allows user to exclude specific upstream devices when loading, so they don't need to see irrelevant information.
https://jira.slac.stanford.edu/browse/ECS-6432
How Has This Been Tested?
Tested manually and with unit tests.
Where Has This Been Documented?
In release notes.
Pre-merge checklist
docs/pre-release-notes.sh
and created a pre-release documentation page