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

Only rescale points for older napari versions #33

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

andy-sweet
Copy link
Collaborator

napari v0.5 includes a fix to handle expected combinations of point size and layer scale. Previously, we worked around that issue by rescaling the point sizes ourselves. After this PR, we only do that for older versions of napari. The check is cached to avoid spamming the logs.

Alternatively, we could require napari>=0.5 in setup.cfg. I decided to support both versions for now, since v0.5 is quite new and comes with a few of its own new bugs.

This was tested manually by installing v0.4.19 and v0.5.2 of napari and visually inspecting the resulting point sizes.

Copy link
Contributor

@uermel uermel left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@andy-sweet andy-sweet merged commit e397320 into chanzuckerberg:main Sep 4, 2024
9 checks passed
@andy-sweet andy-sweet deleted the fix-point-size branch September 4, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants