-
Notifications
You must be signed in to change notification settings - Fork 74
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
adding support for temporal subsets #2168
Conversation
statistic=statistic) | ||
else: | ||
# otherwise simply translate to an object: | ||
layer_data = handler.to_object(layer_data) |
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.
Do we want to leave open the possibility of having a light curve collapsed down from 2D temporal slices (which would require statistic
)?
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.
What is a 2D temporal slice?
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.
I am guessing like spectral cube but in time domain?
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.
Yes, that's what I meant. Is that actually a thing that we expect to be loaded at some point? No idea!
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.
We will eventually want to support target pixel files and modifying the aperture, but if its not obvious how to handle that now, we can just add a note and modify this logic later when needed (I don't think we'll be adding support for that in the terribly near future).
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.
Well, I know that is a thing in heliophysics, so definitely possible.
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 reasonable to me, but I'm curious if @javerbukh has any thoughts/concerns as to how this fits into the broader subsets refactoring work. If we need to merge to move forward with the downstream PR, we can always come back and tweak the implementation here though.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2168 +/- ##
==========================================
- Coverage 91.50% 91.42% -0.09%
==========================================
Files 147 147
Lines 16142 16163 +21
==========================================
+ Hits 14771 14777 +6
- Misses 1371 1386 +15
☔ View full report in Codecov by Sentry. |
I'll check in with @javerbukh about this one at tag up today if I can, and merge if not. |
I just remembered Jesse is out for a while, so I'll merge now. Thanks all! |
@meeseeksdev backport to v3.4.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
adding support for temporal subsets (cherry picked from commit d7f28ab)
Was this backported? If so, please cross link the backport PR here. If not, please change the milestone. Thanks! |
Downstream, LCviz will show light curves as profiles of flux over time. In order give LCviz a subset API that's consistent with jdaviz, we need to generalize a few things here.
The
get_data_from_viewer
andget_subsets
methods inApplication
make some assumptions about the dimensionality of data in jdaviz (data with ndim=1 is spectral; dim options are only spectral or spatial). This PR generalizes theget_data_from_viewer
method to work with non-spectral profiles, and introduces a temporal subset option.I've milestoned this to 3.4.1 just in case we can get a release ASAP.
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.