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

Add ability to lookup component in station by full name #5028

Merged
merged 17 commits into from Feb 22, 2023

Conversation

jenshnielsen
Copy link
Collaborator

@jenshnielsen jenshnielsen commented Feb 20, 2023

This is handy since you can then look up any parameter from its name in the snapshot.

Slightly complicated by the fact that a name could it self contain _ we handle that by trying to merge the next name_part into the name that we are trying to lookup if the name cannot be found but we do not try to handle all possibilities. E.g. it is possible for the complete name to not be unique

To make this possible change the baseclass of all components to have short_name and full_name properties

  • document
  • Test name handling for function and channeltuple

@codecov
Copy link

codecov bot commented Feb 20, 2023

Codecov Report

Merging #5028 (5ef451a) into master (28677c4) will increase coverage by 0.08%.
The diff coverage is 92.37%.

@@            Coverage Diff             @@
##           master    #5028      +/-   ##
==========================================
+ Coverage   67.22%   67.31%   +0.08%     
==========================================
  Files         357      357              
  Lines       29735    29839     +104     
==========================================
+ Hits        19989    20085      +96     
- Misses       9746     9754       +8     

@jenshnielsen jenshnielsen marked this pull request as ready for review February 21, 2023 13:44
@jenshnielsen jenshnielsen added this pull request to the merge queue Feb 21, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 21, 2023
@jenshnielsen jenshnielsen added this pull request to the merge queue Feb 22, 2023
Merged via the queue into microsoft:master with commit 72f96b6 Feb 22, 2023
@jenshnielsen jenshnielsen deleted the add_station_lookup branch February 22, 2023 10:16
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.

None yet

2 participants