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

Reverse gist_rainbow colors to match order of manual presets #2731

Merged
merged 5 commits into from
Feb 27, 2024

Conversation

rosteen
Copy link
Collaborator

@rosteen rosteen commented Feb 27, 2024

@camipacifici noticed that the RGB colors at n>5 were reversed compared to at n<=5. This fixes the problem.

Before:

image

After:

Screenshot 2024-02-27 at 11 28 31 AM

@rosteen rosteen added bug Something isn't working plugin Label for plugins common to multiple configurations labels Feb 27, 2024
@rosteen rosteen added this to the 3.8.3 milestone Feb 27, 2024
@pllim pllim added the 💤backport-v3.8.x on-merge: backport to v3.8.x label Feb 27, 2024
@rosteen rosteen added the trivial Only needs one approval instead of two label Feb 27, 2024
@pllim

This comment was marked as resolved.

@rosteen
Copy link
Collaborator Author

rosteen commented Feb 27, 2024

Test failure is related.

Yup, just caught that and fixed it.

@rosteen
Copy link
Collaborator Author

rosteen commented Feb 27, 2024

Whew, Github picked up the commits after that push.

Copy link
Contributor

@pllim pllim 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 LGTM but I don't grok the test. I'll defer approval to the devs who worked on the original RGB stuff. Thanks!

@rosteen
Copy link
Collaborator Author

rosteen commented Feb 27, 2024

It's testing the same thing as before I just reorganized it slightly to not have to think about skipping an index in reverse order.

Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.66%. Comparing base (a50aca4) to head (c314257).
Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2731      +/-   ##
==========================================
+ Coverage   88.07%   88.66%   +0.59%     
==========================================
  Files         108      108              
  Lines       15883    15886       +3     
==========================================
+ Hits        13989    14086      +97     
+ Misses       1894     1800      -94     

☔ 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.

Makes sense to me - thanks!

Just wanted to link to #2568 in case we need a paper trail - it was that change that necessitated the flip here.

@rosteen rosteen merged commit 20de93b into spacetelescope:main Feb 27, 2024
16 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/jdaviz that referenced this pull request Feb 27, 2024
pllim added a commit that referenced this pull request Feb 27, 2024
…1-on-v3.8.x

Backport PR #2731 on branch v3.8.x (Reverse gist_rainbow colors to match order of manual presets)
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 trivial Only needs one approval instead of two 💤backport-v3.8.x on-merge: backport to v3.8.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants