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

Add image is close test helper #1244

Merged
merged 1 commit into from Jul 4, 2023
Merged

Add image is close test helper #1244

merged 1 commit into from Jul 4, 2023

Conversation

ianthomas23
Copy link
Member

This adds a new test helper function assert_image_close to assert that two Images are close using their RGBA components. This is used straightaway in test_shade for which an increased tolerance was added on GPU in #1129 and I have observed similar differences recently on macOS arm64 with latest numba and numpy. The test happens to have a value very near halfway between two integers so slightly different rounding can occur.

@ianthomas23 ianthomas23 added this to the v0.15.1 milestone Jul 4, 2023
@ianthomas23 ianthomas23 merged commit 9013d32 into holoviz:main Jul 4, 2023
16 checks passed
@ianthomas23 ianthomas23 deleted the image_is_close_test_helper branch July 4, 2023 16:37
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.

None yet

1 participant