8000 Add style collection for applying and storing multiple encodings by andy-sweet · Pull Request #7087 · napari/napari · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add style collection for applying and storing multiple encodings #7 8000 087

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

andy-sweet
Copy link
Member

References and relevant issues

Part of #2866

Description

This adds a utility class for storing a collection of style encodings. The intent is to use this class in a napari layer as a way to replace lots of individual style attributes (e.g. face_color, face_color_cycle, face_colormap). See andy-sweet#6 to see roughly what this would look like.

Credit to @jni for devising this abstraction in andy-sweet#6

@github-actions github-actions bot added the tests Something related to our tests label Jul 10, 2024
@andy-sweet
Copy link
Member Author

I created this because when I looked at #7084 , I thought why are we doing this?

Therefore, I'm resurrecting some of the related style encoding work which was one of the motivators of moving to more structured features over properties.

@andy-sweet
Copy link
Member Author
andy-sweet commented Jul 11, 2024

The next step, which can happen before this gets merged, is to make an equivalent of andy-sweet#6 but with deprecations instead of deletions. Not sure how much time I'm going to have to make that happen, so if anyone is interested in helping, let me know!

@andy-sweet andy-sweet added this to the 0.5 milestone Jul 11, 2024
Copy link
codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.86%. Comparing base (157b144) to head (3f6d7bd).
Report is 145 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7087      +/-   ##
==========================================
- Coverage   92.95%   92.86%   -0.10%     
==========================================
  Files         618      618              
  Lines       56486    56558      +72     
==========================================
+ Hits        52509    52525      +16     
- Misses       3977     4033      +56     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement needs:core-review Needs core dev review tests Something related to our tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0