-
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
Moment map continuum subtraction #2587
Conversation
b8e09f0
to
2a312c6
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2587 +/- ##
==========================================
+ Coverage 91.51% 91.53% +0.01%
==========================================
Files 161 161
Lines 19596 19804 +208
==========================================
+ Hits 17934 18128 +194
- Misses 1662 1676 +14 ☔ View full report in Codecov by Sentry. |
07082e0
to
3460fde
Compare
This reverts commit 292b7d9.
astropy decorators aren't ideal for renaming a traitlet/property/setter, so add custom warnings
91caa3a
to
9b6350f
Compare
Trigger traceback with the following steps:
Here is the traceback:
|
What is your spectral subset? Is it possible it doesn't encompass any data (in which case we should check for that - but probably somewhere more general). |
Is it possible for a spectral subset in cubeviz to not encompass any data? I made it in the middle of the collapsed flux spectrum. |
If you highlight a region where there is a gap, it is technically possible. But usually people would only highlight a region of interest like emission/absorption lines, right? |
Still seeing this in a new environment while changing where I make the spectral subset selection. Here is my environment:
|
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.
The plugin works well and everything behaves as intended, although I'll let someone with more knowledge of continuum subtraction check the results of the tests. Nice work!
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.
Followed the video workflow and code changes, awesome stuff; it's got the green light from me!
ha! 🤣 🟢 |
Description
This pull request implements support for continuum subtraction within the moment map plugin in cubeviz. It does so by refactoring code in line-analysis into a reusable component, showing the same input options and visualization (but with additional descriptive text to explain that the continuum is re-computed per-spaxel when computing the moment map).
Screen.Recording.2023-12-05.at.2.00.26.PM.mov
This PR also includes a commit (since reverted but left in the PR diff in case we want to revisit it) which would enable exporting the continuum as a cube back into the app.
TODO:
line_analysis.width
->line_analysis.continuum_width
orig_spec
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.