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

COMP: Numerical computation precision limit in resampling #4570

Merged

Conversation

hjmjohnson
Copy link
Member

@hjmjohnson hjmjohnson commented Apr 10, 2024

Coordinate computations for nearest neighbor are computed at the limits of numerical precision for this image during resampling. arm64 and x86_64 compute input continuous index coordinates as 105.39999999999999 vs 105.4 which requires a slight tolerance acceptance in the comparisons

Add --compareRadiusTolerance 1 to test validation.

image

https://open.cdash.org/tests/1506666894

PR Checklist

  • No API changes were made (or the changes have been approved)
  • No major design changes were made (or the changes have been approved)
  • Added test (or behavior not changed)
  • Updated API documentation (or API not changed)
  • Added license to new files (if any)
  • Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5
  • Added ITK examples for all new major features (if any)

@hjmjohnson hjmjohnson added the type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct label Apr 10, 2024
@hjmjohnson hjmjohnson added this to the ITK 5.4.0 milestone Apr 10, 2024
@hjmjohnson hjmjohnson requested a review from dzenanz April 10, 2024 21:40
@hjmjohnson hjmjohnson self-assigned this Apr 10, 2024
@github-actions github-actions bot added type:Compiler Compiler support or related warnings type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots area:Examples Demonstration of the use of classes and removed type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct labels Apr 10, 2024
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

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

Nice, thanks @hjmjohnson

@hjmjohnson hjmjohnson force-pushed the fix-arm64-test-failure branch from 5b19184 to 90eae4f Compare April 10, 2024 22:20
@github-actions github-actions bot added area:Python wrapping Python bindings for a class area:ThirdParty Issues affecting the ThirdParty module labels Apr 10, 2024
Coordinate computations for nearest neighbor are computed at the limits
of numerical precision for this image during resampling.  arm64 and
x86_64 compute input continuous index coordinates as 105.39999999999999
vs 105.4 which requires a slight tolerance acceptance in the comparisons

Add --compareRadiusTolerance 1 to test validation.
@hjmjohnson hjmjohnson force-pushed the fix-arm64-test-failure branch from 90eae4f to 209e324 Compare April 10, 2024 22:48
@github-actions github-actions bot removed area:Python wrapping Python bindings for a class area:ThirdParty Issues affecting the ThirdParty module labels Apr 10, 2024
@hjmjohnson hjmjohnson closed this Apr 10, 2024
@hjmjohnson hjmjohnson deleted the fix-arm64-test-failure branch April 10, 2024 23:08
@dzenanz
Copy link
Member

dzenanz commented Apr 10, 2024

@hjmjohnson did you accidentally deleted this branch? And possibly also #4571?

@hjmjohnson hjmjohnson restored the fix-arm64-test-failure branch April 11, 2024 01:00
@hjmjohnson hjmjohnson reopened this Apr 11, 2024
@hjmjohnson
Copy link
Member Author

@hjmjohnson did you accidentally deleted this branch? And possibly also #4571?

Yes! Thank you for alerting me.

@hjmjohnson hjmjohnson merged commit 877acba into InsightSoftwareConsortium:master Apr 11, 2024
17 checks passed
@hjmjohnson hjmjohnson deleted the fix-arm64-test-failure branch April 11, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Examples Demonstration of the use of classes type:Compiler Compiler support or related warnings type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants