Skip to content
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

Merged
merged 25 commits into from
Nov 5, 2024

Conversation

janeliu-slac
Copy link
Contributor

@janeliu-slac janeliu-slac commented Nov 1, 2024

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 the containers variable once at the end of the function and removed specific upstream devices from containers.

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

  • Code works interactively (a real hutch config file can be loaded)
  • Code contains descriptive docstrings, including context and API
  • New/changed functions and methods are covered in the test suite where possible
  • Test suite passes locally
  • Test suite passes on GitHub Actions
  • Ran docs/pre-release-notes.sh and created a pre-release documentation page
  • Pre-release docs include context, functional descriptions, and contributors as appropriate

Copy link
Contributor

@tangkong tangkong left a 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.

hutch_python/load_conf.py Outdated Show resolved Hide resolved
hutch_python/tests/test_happi.py Outdated Show resolved Hide resolved
hutch_python/tests/test_happi.py Outdated Show resolved Hide resolved
@ZLLentz
Copy link
Member

ZLLentz commented Nov 2, 2024

I agree that this looks good overall

@janeliu-slac janeliu-slac requested a review from ZLLentz November 5, 2024 17:20
@janeliu-slac janeliu-slac requested a review from tangkong November 5, 2024 17:20
@tangkong
Copy link
Contributor

tangkong commented Nov 5, 2024

Ah sorry one last thing: could you document the proper yaml setup in the yaml_files.rst source file?

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.

ZLLentz
ZLLentz previously approved these changes Nov 5, 2024
@janeliu-slac
Copy link
Contributor Author

Updated yaml_files.rst. I think everything looks good.

Copy link
Contributor

@tangkong tangkong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@janeliu-slac janeliu-slac merged commit 0b8e032 into pcdshub:master Nov 5, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants