-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expanded support of SB/Flux translations (#2940)
* UI functioning unit conversion, need to reconcile tests * update syntax, remove unnecessary logic * tests now pass, API functionality improved * add additional equivalencies for coords info * first pass at disabling specviz translations * Remove dev flag, consolidate untranslatable units, multi-config support, styling changes * Refactor moment map unit conversion to not require spectrum, so nothing to centralize now. Fix devdeps Simplify flux_conversion logic and other minor fixes. Add flux conversion tests. Clarify which one should be reverted in the future * Remove SB/flux conversion for moment map because moment map always in SB * add os import * remove duplicate import from rebase * reconcile tests, change hints/docs, handle dimensionless case * emit GlobalDisplayUnitChanged msg when toggling SB<>flux * resolve most tests * temporarily remove translation message * add comments, reenable global display message, resolve tests * force sb unit for line flux test * add comments, clarify naming, add case handling for args * remove args and loop, replaced with msg * consolidate 2 translator functions into 1, consolidate _translate and _on_flux_unit_changed * address test failures * update marks.py equivalencies, resolving UnitConversion errors * make sure not only translation equivalencies are in marks.py but also conversions * add test coverage * use astropy units, small logic tweaks, cache untranslatable units * technical review changes * add warning message in tray if PIXAR_SR not present in FITS header * second pass at technical changes * move flux_unit checks to beginning of _on_flux_unit_changed * change _unit to flux.unit --------- Co-authored-by: P. L. Lim <[email protected]> Co-authored-by: Kyle Conroy <[email protected]>
- Loading branch information
1 parent
22ed4cf
commit 143cd8d
Showing
14 changed files
with
455 additions
and
230 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.