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

Ensure QImage is ARGB32 before converting to numpy #618

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

aganders3
Copy link
Contributor

Closes #617

Thanks for pointing out the fix in napari - I just copied the code from there. I think convertTo might avoid the copy when unnecessary as well, but it was introduced in 5.13 so this seems safer.

Copy link

codecov bot commented Dec 6, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (33c5e60) 87.73% compared to head (b59306a) 87.70%.

Files Patch % Lines
src/magicgui/backends/_qtpy/widgets.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #618      +/-   ##
==========================================
- Coverage   87.73%   87.70%   -0.04%     
==========================================
  Files          40       40              
  Lines        4722     4724       +2     
==========================================
  Hits         4143     4143              
- Misses        579      581       +2     

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

Copy link
Member

@tlambert03 tlambert03 left a comment

Choose a reason for hiding this comment

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

thanks!

@tlambert03 tlambert03 merged commit 9d61830 into pyapp-kit:main Dec 6, 2023
33 of 34 checks passed
@aganders3 aganders3 deleted the fix-617 branch December 6, 2023 16:28
@tlambert03 tlambert03 added the bug Something isn't working label Dec 6, 2023
@tlambert03
Copy link
Member

included in v0.8.1, building now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors in rendered widget image with 16-bit screen
2 participants