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

update to_pygfx #31

Merged
merged 10 commits into from
Dec 4, 2023
Merged

update to_pygfx #31

merged 10 commits into from
Dec 4, 2023

Conversation

tlambert03
Copy link
Member

@tlambert03 tlambert03 commented Dec 3, 2023

updates the to_pygfx method to deal with some upstream deprecations

Copy link

codecov bot commented Dec 3, 2023

Codecov Report

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

Comparison is base (1d5bcbb) 96.65% compared to head (f61550d) 96.76%.

❗ Current head f61550d differs from pull request most recent head ba9137a. Consider uploading reports for the commit ba9137a to get more accurate results

Files Patch % Lines
src/cmap/_colormap.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   96.65%   96.76%   +0.10%     
==========================================
  Files         151      151              
  Lines        1856     1857       +1     
==========================================
+ Hits         1794     1797       +3     
+ Misses         62       60       -2     

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

@@ -79,19 +79,20 @@ def test_plotly() -> None:
px.imshow(IMG, color_continuous_scale=CMAP.to_plotly())


@pytest.mark.skipif(bool(os.getenv("CI")), reason="segfaults")
@pytest.mark.skipif(bool(os.getenv("CI")), reason="need to fix drivers")

Choose a reason for hiding this comment

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

fpl and pygfx CI might offer some help, you need to add a step to install lavapipe in your CI workflow: https://github.com/fastplotlib/fastplotlib/blob/main/.github/workflows/ci.yml#L131-L134

If you want create test screenshots of the canvas, you can use the offscreen canvas (I think you can also take a screenshot of a Qt window or widget and save that to pngs).

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @kushalkolar. I did actually have that in a previous commit tlambert03@17b0c47... but then the xvfb tests failed for some reason. All the other third party tests work fine with that setup though, so I need to find something that works for all of them.

@tlambert03 tlambert03 merged commit 0d03d78 into main Dec 4, 2023
13 checks passed
@tlambert03 tlambert03 deleted the update-pygfx branch December 4, 2023 15:55
@tlambert03 tlambert03 added the bug Something isn't working label Dec 4, 2023
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.

2 participants