ElementHolder.get() resolves named arrays of any type; drop supersede… - #462
Merged
gupichon merged 2 commits intoOct 2, 2026
Conversation
…d get_element/get_elements/get_all_elements/get_betatron_tune_monitor/get_*_tuning
Member
|
Looks good to me. Just why do we need to keep the |
Member
Author
Because I missed it. |
Member
Author
|
@GamelinAl , it's done. |
GamelinAl
approved these changes
Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses the last round of changes requested by @GamelinAl on PR #430 before it can be approved:
Related Issue
Features/issues described there are:
Changes to existing functionality
Testing
The following tests (compatible with pytest) were added:
Verify that your checklist complies with the project
New and existing unit tests pass locally
Tests were added to prove that all features/changes are effective
The code is commented where appropriate
Any existing features are not broken
ElementHolder.get() signature changed from no-argument to get(name=None), matching ToolHolder.get()/DiagnosticHolder.get(). Calling it with no argument is unchanged.
Every internal caller of the removed methods (diagnostic_holder.py, tune.py, tune_response_matrix.py, chromaticity_monitor.py, bba2.py, and 4 self-calls in element_holder.py) was repointed to the typed replacements.
Updated the 3 example scripts/notebook cells and ~44 test call sites across 13 test files that used the removed methods.
Testing
The following tests (compatible with pytest) were added:
array — covering the exact gap flagged in review.
Verify that your checklist complies with the project