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 points selection #6621

Merged
merged 1 commit into from Jan 25, 2024
Merged

Fix points selection #6621

merged 1 commit into from Jan 25, 2024

Conversation

Czaki
Copy link
Collaborator

@Czaki Czaki commented Jan 25, 2024

References and relevant issues

closes #6620

Description

It looks like there is a bug in psygnal selection that copied version of selection is sharing inner set with base one. This PR fixes it. But I will go into direction to fix it also in base.

@Czaki Czaki added this to the 0.4.19 milestone Jan 25, 2024
Copy link

codecov bot commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0be7f18) 92.06% compared to head (01fdcce) 92.24%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6621      +/-   ##
==========================================
+ Coverage   92.06%   92.24%   +0.18%     
==========================================
  Files         604      604              
  Lines       53999    53999              
==========================================
+ Hits        49713    49812      +99     
+ Misses       4286     4187      -99     

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

Copy link
Member

@psobolewskiPhD psobolewskiPhD left a comment

Choose a reason for hiding this comment

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

If/when this is addressed upstream, would we revert this?

@psobolewskiPhD psobolewskiPhD added the bugfix PR with bugfix label Jan 25, 2024
@Czaki
Copy link
Collaborator Author

Czaki commented Jan 25, 2024

If/when this is addressed upstream, would we revert this?

If I correctly understand upstream code, then the fixed version will be equivalent for this code. So the question is which is more readable.

@Czaki Czaki added the ready to merge Last chance for comments! Will be merged in ~24h label Jan 25, 2024
@Czaki Czaki merged commit 737ae89 into napari:main Jan 25, 2024
36 of 37 checks passed
@Czaki Czaki deleted the fix_points_selection branch January 25, 2024 21:36
@psobolewskiPhD psobolewskiPhD removed the ready to merge Last chance for comments! Will be merged in ~24h label Jan 27, 2024
Czaki added a commit that referenced this pull request Jan 27, 2024
# References and relevant issues

closes #6620


# Description

It looks like there is a bug in psygnal selection that copied version of
selection is sharing inner set with base one. This PR fixes it. But I
will go into direction to fix it also in base.
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.

Previous point selected on creation
2 participants