Skip to content
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

Fix cube fit toggle with spectral subset selected #3123

Merged
merged 3 commits into from
Jul 31, 2024

Conversation

rosteen
Copy link
Collaborator

@rosteen rosteen commented Jul 30, 2024

This fixes a bug where toggling to Cube Fit in the model fitting plugin when a spectral subset was selected would result in a traceback and no data being available in the dataset menu. It appears that the dataset is briefly set to None in this case before the appropriate cube data is populated in the menu.

@rosteen rosteen added bug Something isn't working plugin Label for plugins common to multiple configurations backport-v3.10.x on-merge: backport to v3.10.x labels Jul 30, 2024
@rosteen rosteen added this to the 3.10.4 milestone Jul 30, 2024
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.88%. Comparing base (a126296) to head (3ed6a64).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3123      +/-   ##
==========================================
- Coverage   88.93%   88.88%   -0.06%     
==========================================
  Files         112      112              
  Lines       17411    17391      -20     
==========================================
- Hits        15485    15458      -27     
- Misses       1926     1933       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@kecnry kecnry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

glad it was an easy fix! Thanks!

Copy link
Contributor

@haticekaratay haticekaratay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff looks straightforward to me!

@rosteen rosteen merged commit 09c3cc6 into spacetelescope:main Jul 31, 2024
18 of 19 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/jdaviz that referenced this pull request Jul 31, 2024
@pllim pllim modified the milestones: 3.10.4, 4.0 Jul 31, 2024
@pllim pllim removed the backport-v3.10.x on-merge: backport to v3.10.x label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin Label for plugins common to multiple configurations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants