-
Notifications
You must be signed in to change notification settings - Fork 77
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
Hide spectral subsets in cubeviz #2636
base: main
Are you sure you want to change the base?
Conversation
…dits to logic are necessary
…visible; needs verification that subset type is inaccesible at times for flux/uncert viewers
I don't think this is reliable enough - we do allow loading the flux cube into the uncertainty viewer (and vice versa). If its not possible to access the information we need at available callbacks/methods, then I think we should make an upstream request for a message to be sent after a subset is created and fully available, and then make use of that here. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2636 +/- ##
=======================================
Coverage 91.52% 91.52%
=======================================
Files 161 161
Lines 19969 19982 +13
=======================================
+ Hits 18277 18289 +12
- Misses 1692 1693 +1 ☔ View full report in Codecov by Sentry. |
I was thinking that it was a pretty hard-coded way of doing too so I didn't include it in the file changes nor demo it, and now that you mention it, the vis versa, was one thing that I was doing to test the state changes. All in all I think the upstream change like we talked about in code review is the best past forward. |
@gibsongreen do you know if your subsets are created directly via |
Hey @dhomeier , it does not appear that we use |
Description
Screen.Recording.2023-12-19.at.12.03.35.PM.mov
Behavior in the video displays that the initial overlay when a slice is viewed is still visible in flux/uncert viewers. After a state change, overlays become hidden.
When _expected_subset_layer_default() is called in on_layers_update(), the subset is either created and but the data is inaccessible, or the glue message is stating that the subset is in the process of being create, in either case, resulting in type None for data contained within the subset.
Looking into the message created from _on_subset_create(), yields the same subset data of type None. Tracing through the remaining default viewer class methods yields the same conclusion.
Note:
Fixes #
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.