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

Remove scaling of highlight width, fix showing shapes for uneven coordinates #6629

Merged
merged 4 commits into from Feb 5, 2024

Conversation

Czaki
Copy link
Collaborator

@Czaki Czaki commented Jan 29, 2024

References and relevant issues

This PR is created as result of debug #6627 (comment)
As 0.4.19 branch has fewer problems than #6628 is created for 0.4.19.

Description

Fix logic for selecting of visible shapes based on idea from #2289. It is lucky that we do not hit this earlier.

Removes scaling of width of markers border (this is same like in #6628)

To improve readability, this update ShapesVisual to have named subvisuals.

@Czaki Czaki added the bugfix PR with bugfix label Jan 29, 2024
@Czaki Czaki added this to the 0.5.0 milestone Jan 29, 2024
@Czaki Czaki requested a review from brisvag January 29, 2024 16:05
@Czaki Czaki changed the title remove scaling of highlight width Remove scaling of highlight width, fix showing shapes for uneven coordinates Jan 29, 2024
@brisvag
Copy link
Contributor

brisvag commented Jan 29, 2024

Fix logic for selecting of visible shapes based on idea from #2289. It is lucky that we do not hi this earlier.

Ahhh! Nice! We did hit this somewhere in zulip a few days ago, it's great you found the issue. Let's get this in asap!

@psobolewskiPhD
Copy link
Member

psobolewskiPhD commented Feb 2, 2024

The script from the issue gives me something strange:
image
But if I hit Home and scroll to the right slice, I see the shape and can interact with it just fine.
image

@Czaki
Copy link
Collaborator Author

Czaki commented Feb 2, 2024

@psobolewskiPhD When I merge main into this branch, it looks fixed

Copy link

codecov bot commented Feb 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (63c145f) 92.29% compared to head (8b21f98) 92.25%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6629      +/-   ##
==========================================
- Coverage   92.29%   92.25%   -0.05%     
==========================================
  Files         605      605              
  Lines       54077    54092      +15     
==========================================
- Hits        49912    49902      -10     
- Misses       4165     4190      +25     

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

@psobolewskiPhD
Copy link
Member

If I add viewer.reset_view() after the scale setting for loop then everything is gucci.

@Czaki
Copy link
Collaborator Author

Czaki commented Feb 3, 2024

If I add viewer.reset_view() after the scale setting for loop then everything is gucci.

Yes. I found such a line in my script instance. I will take a look at what happens here.

@Czaki Czaki added the ready to merge Last chance for comments! Will be merged in ~24h label Feb 3, 2024
@Czaki Czaki merged commit 39f9d88 into napari:main Feb 5, 2024
33 of 34 checks passed
@Czaki Czaki deleted the fix_thickness branch February 5, 2024 08:38
@Czaki Czaki removed the ready to merge Last chance for comments! Will be merged in ~24h label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR with bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants