-
Notifications
You must be signed in to change notification settings - Fork 75
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
Better menu selection labels for spectral lines in line analysis plugin #2816
Better menu selection labels for spectral lines in line analysis plugin #2816
Conversation
self.line_items = msg.names_rest | ||
self.line_items = [f"{msg.marks[i].name} {msg.marks[i].rest_value} {msg.marks[i].xunit}" for i in range(len(msg.marks))] # noqa |
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.
looks like this wasn't exposed API, so shouldn't cause backwards compatibility concerns 🤞
6786f9e
to
10dbd0c
Compare
I updated this to only change the displayed text in the menu, since changing the actual value returned as |
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.
Diff looks good to me and I really like the added clarity, nice work!
Co-authored-by: Kyle Conroy <kyleconroy@gmail.com>
Co-authored-by: Kyle Conroy <kyleconroy@gmail.com>
Clarify comment
a266ea5
to
c28db42
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2816 +/- ##
=======================================
Coverage 88.88% 88.89%
=======================================
Files 111 111
Lines 16983 16986 +3
=======================================
+ Hits 15096 15099 +3
Misses 1887 1887 ☔ View full report in Codecov by Sentry. |
Previously, the line menu under
Redshift from Centroid
showed the name and originally defined value for the lines, which could have been in different units. Now it shows name + rest value in current units + unit.Before:
Now: