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

Fails windows unittests #1324

Open
gfardell opened this issue Jul 29, 2022 · 1 comment
Open

Fails windows unittests #1324

gfardell opened this issue Jul 29, 2022 · 1 comment

Comments

@gfardell
Copy link
Member

Intermittently fails unit tests on windows. Potentially a hardware glitch.

======================================================================
FAIL: test_results_with_tigre (test_reconstructors.Test_FBP_results)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\gemst\miniconda3\conda-bld\cil_1659110906907\test_tmp\Wrappers\Python\test\test_reconstructors.py", line 665, in test_results_with_tigre
    np.testing.assert_allclose(reco_cil.as_array(), reco_tigre.as_array(),atol=1e-8)
  File "C:\Users\gemst\miniconda3\conda-bld\cil_1659110906907\_test_env\lib\site-packages\numpy\testing\_private\utils.py", line 1528, in assert_allclose
    assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
  File "C:\Users\gemst\miniconda3\conda-bld\cil_1659110906907\_test_env\lib\site-packages\numpy\testing\_private\utils.py", line 842, in assert_array_compare
    raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=1e-08

Mismatched elements: 1884487 / 2097152 (89.9%)
Max absolute difference: 0.00112051
Max relative difference: 11789047.
 x: array([[[1.059811e-08, 1.004138e-08, 1.016827e-08, ..., 1.016844e-08,
         1.004141e-08, 1.059822e-08],
        [1.004138e-08, 9.552465e-09, 9.746595e-09, ..., 9.746595e-09,...
 y: array([[[8.041360e-09, 8.608738e-09, 8.880001e-09, ..., 8.913701e-09,
         8.979105e-09, 9.385039e-09],
        [7.468480e-09, 8.110127e-09, 8.448559e-09, ..., 8.458870e-09,...

----------------------------------------------------------------------

Error when building with conda-build np120py38. But unable to recreate in dedicated environment.

def test_results_with_tigre(self):

@gfardell gfardell mentioned this issue Jul 29, 2022
24 tasks
@gfardell
Copy link
Member Author

gfardell commented Aug 1, 2022

======================================================================
FAIL: test_input_arguments (test_PluginsTigre_FBP.Test_Parallel3D_FBP)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\gemst\miniconda3\conda-bld\cil_1659350850327\test_tmp\Wrappers\Python\test\utils_projectors.py", line 481, in test_input_arguments
    np.testing.assert_allclose(reco.as_array(), self.img_data.as_array(),atol=self.tolerance_fbp)
  File "C:\Users\gemst\miniconda3\conda-bld\cil_1659350850327\_test_env\lib\site-packages\numpy\testing\_private\utils.py", line 1530, in assert_allclose
    assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
  File "C:\Users\gemst\miniconda3\conda-bld\cil_1659350850327\_test_env\lib\site-packages\numpy\testing\_private\utils.py", line 844, in assert_array_compare
    raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0.001

Mismatched elements: 441 / 2097152 (0.021%)
Max absolute difference: 0.00176964
Max relative difference: 20040.877
 x: array([[[8.041360e-09, 8.608738e-09, 8.880001e-09, ..., 8.913701e-09,
         8.979105e-09, 9.385039e-09],
        [7.468480e-09, 8.110127e-09, 8.448559e-09, ..., 8.458870e-09,...
 y: array([[[0., 0., 0., ..., 0., 0., 0.],
        [0., 0., 0., ..., 0., 0., 0.],
        [0., 0., 0., ..., 0., 0., 0.],...

----------------------------------------------------------------------

With CIL:cil-22.0.0-np122py39_0.tar.bz2, again unable to recreate outside build& test

@casperdcl casperdcl mentioned this issue Aug 30, 2024
10 tasks
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