-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Investigate moment map commented test #2936
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2936 +/- ##
==========================================
- Coverage 88.79% 88.78% -0.02%
==========================================
Files 111 111
Lines 17236 17233 -3
==========================================
- Hits 15305 15300 -5
- Misses 1931 1933 +2 ☔ View full report in Codecov by Sentry. |
Do moment maps work for you in this PR? I see an error with all default values in the CubevizExample notebook |
Is this using that thingy that is not enabled by default? |
No, but the auto-collapsed spectrum (using the sum function) is in flux units which means the default units are in flux, while moment map is using surface brightness units. |
Didn't @kecnry ask us to just leave it broken until Gilbert's thingy is in or something? |
It probably makes most sense to merge the changes to display units first, rebase this on top of that, and then ensure that it correctly handles SB<>SB conversions correctly without unnecessary code for SB<>flux which won't be supported. |
Why is the CI green? What are we not testing? |
Re: #2936 (comment) Okay, so we need to keep this code for now, yes? In that case, it can still be simplified and there is still a bug to be fixed. |
I cleaned it up (again). What about now? |
We will be keeping SB<>SB unit conversion but will no longer need SB<>flux (the comments seem to suggest the opposite). |
Comments aside (which I can update), the code itself looks okay to proceed? |
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.
Lots of duplicated logic in flux_conversion
. It was hurting my head, so I ended up just re-writing it to be simpler.
OK I think I am done here until I hear more. |
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
because moment map always in SB
The code here is now part of #2940 |
This PR addresses the following unreleased code (hence no change log needed):
Fixing compatibility with unreleased specutils (hence fixing devdeps).flux_conversion
function where equivalencies math is flipped for caseslen(values) != 2
andlen(values) == 2
. This is accomplished by having both logic go through the same math (there is really no good reason to have separate math for those cases anyway).Out of scope:
xref #2910 #2873
🐱