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

Test error in test_clip_intensity_percentilesd.py #7666

Closed
KumoLiu opened this issue Apr 18, 2024 · 1 comment
Closed

Test error in test_clip_intensity_percentilesd.py #7666

KumoLiu opened this issue Apr 18, 2024 · 1 comment

Comments

@KumoLiu
Copy link
Contributor

KumoLiu commented Apr 18, 2024

[2024-04-18T08:39:45.332Z] ======================================================================
[2024-04-18T08:39:45.332Z] FAIL: test_hard_clipping_two_sided_0 (tests.test_clip_intensity_percentilesd.TestClipIntensityPercentilesd2D)
[2024-04-18T08:39:45.332Z] ----------------------------------------------------------------------
[2024-04-18T08:39:45.332Z] Traceback (most recent call last):
[2024-04-18T08:39:45.332Z]   File "/usr/local/lib/python3.8/dist-packages/parameterized/parameterized.py", line 620, in standalone_func
[2024-04-18T08:39:45.332Z]     return func(*(a + p.args), **p.kwargs, **kw)
[2024-04-18T08:39:45.332Z]   File "/home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_clip_intensity_percentilesd.py", line 35, in test_hard_clipping_two_sided
[2024-04-18T08:39:45.332Z]     assert_allclose(result[key], p(expected), type_test="tensor", rtol=1e-7, atol=0)
[2024-04-18T08:39:45.333Z]   File "/home/jenkins/agent/workspace/MONAI-premerge/monai/tests/utils.py", line 135, in assert_allclose
[2024-04-18T08:39:45.333Z]     np.testing.assert_allclose(actual, desired, *args, **kwargs)
[2024-04-18T08:39:45.333Z]   File "/usr/local/lib/python3.8/dist-packages/numpy/testing/_private/utils.py", line 1530, in assert_allclose
[2024-04-18T08:39:45.333Z]     assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
[2024-04-18T08:39:45.333Z]   File "/usr/local/lib/python3.8/dist-packages/numpy/testing/_private/utils.py", line 844, in assert_array_compare
[2024-04-18T08:39:45.333Z]     raise AssertionError(msg)
[2024-04-18T08:39:45.333Z] AssertionError: 
[2024-04-18T08:39:45.333Z] Not equal to tolerance rtol=1e-07, atol=0
[2024-04-18T08:39:45.333Z] 
[2024-04-18T08:39:45.333Z] Mismatched elements: 410 / 8192 (5%)
[2024-04-18T08:39:45.333Z] Max absolute difference: 9.763241e-05
[2024-04-18T08:39:45.333Z] Max relative difference: 0.00011955
[2024-04-18T08:39:45.333Z]  x: array([[[[0., 0., 0., ..., 0., 0., 0.],
[2024-04-18T08:39:45.333Z]          [0., 0., 0., ..., 0., 0., 0.],
[2024-04-18T08:39:45.333Z]          [0., 0., 0., ..., 0., 0., 0.],...
[2024-04-18T08:39:45.333Z]  y: array([[[[0., 0., 0., ..., 0., 0., 0.],
[2024-04-18T08:39:45.333Z]          [0., 0., 0., ..., 0., 0., 0.],
[2024-04-18T08:39:45.333Z]          [0., 0., 0., ..., 0., 0., 0.],...
[2024-04-18T08:39:45.333Z] 
KumoLiu added a commit to KumoLiu/MONAI that referenced this issue Apr 18, 2024
Signed-off-by: YunLiu <[email protected]>
@KumoLiu
Copy link
Contributor Author

KumoLiu commented Apr 19, 2024

Fixed by #7659

@KumoLiu KumoLiu closed this as completed Apr 19, 2024
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

No branches or pull requests

1 participant