-
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
Display units (unit conversion refactor) #2127
Conversation
63f23d2
to
ee8deb9
Compare
This comment was marked as resolved.
This comment was marked as resolved.
e59b2f9
to
c37463e
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2127 +/- ##
==========================================
+ Coverage 88.48% 91.67% +3.19%
==========================================
Files 95 148 +53
Lines 10540 16752 +6212
==========================================
+ Hits 9326 15357 +6031
- Misses 1214 1395 +181
☔ View full report in Codecov by Sentry. |
082bccf
to
fbf185e
Compare
fbf185e
to
8b18ca4
Compare
* basic app-wide display unit in specviz (not all plugins are updated yet) * unit-aware select component which maps to glue-supported unit strings * implement use_display_units option for get_data, get_subsets Co-authored-by: Jesse Averbukh <javerbukh@gmail.com> Co-authored-by: Kyle Conroy <kyleconroy@gmail.com>
* emit event when display unit changed * update line analysis for unit changes
(we might want to generalize some of this logic more into the mark's _update_data when adding support for spectral lines as well)
* update markers plugin for display units * move unit-updating logic to mark itself * LineUncertainties to be unit-aware * fix support for markers in cubeviz
disallow gaussian smooth output as input
in app.get_subsets()
BUG: Fix ellipse translation in app.get_subsets()
FEAT: Load annulus from file, load reg files from IMPORT DATA
Added .ico and .svg files
* DOC: Use pydata-sphinx-theme that has dark mode, modern design, and mobile friendly DOC: No longer need tomli DOC: Now requires sphinx-astropy 1.9.1 * Add cards to index page with icons * Remove iframe hardcoding so it scales in mobile mode * DOC: Insert small logo next to title instead of a giant logo above the title
* Add app method to simplify spectral subset Add simplify button to subset plugin * Fix xor bug exposed by simplify button * Fix style checks * Remove print statements * Add tooltip to simplify button * Make button appear only if the subset can be simplified * Make simplify button appear only when applicable * Apply suggestions from code review Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com> * Update changes file --------- Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
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.
Approved, a few things don't work perfectly in line lists but we were going to defer that to a larger overhaul of line lists.
* introduced by spacetelescope#2127: spatial subsets crashed when trying to display the unit in the subset plugin, this now implements a fallback to not show the unit suffix
Description
This pull request compiles all the efforts in the unit conversion refactor to support display units and will remain in draft mode until all those individual efforts are merged into the development branch. Until then, this can serve as a thread to track items that need to be done/tested before eventual merge into main.
Incremental PRs:
Bugs that need fixing upstream before merge:
Needs testing:
Other TODOs:
core.helpers.ConfigHelper._get_data._handle_display_units
2d-spectrum-viewer (specviz2d, mosviz) support or disable plugin(deferring support)image viewer support (in mouseover) for cubeviz(deferring support)Change log entry
CHANGES.rst
? If you want to avoid merge conflicts,list the proposed change log here for review and add to
CHANGES.rst
before merge. If no, maintainershould add a
no-changelog-entry-needed
label.Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.