Skip to content

conda test errors #5425

@wyli

Description

@wyli

Describe the bug
original log: https://github.com/Project-MONAI/MONAI/actions/runs/3342606607

======================================================================
FAIL: test_write_5d (tests.test_nifti_rw.TestNiftiLoadRead)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/MONAI/MONAI/tests/test_nifti_rw.py", line 244, in test_write_5d
    np.testing.assert_allclose(out.get_fdata(), np.array([[[[[0.0, 2.0]], [[4.0, 5.0]], [[7.0, 9.0]]]]]))
  File "/usr/share/miniconda/envs/monai/lib/python3.9/site-packages/numpy/testing/_private/utils.py", line 1530, in assert_allclose
    assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
  File "/usr/share/miniconda/envs/monai/lib/python3.9/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

Mismatched elements: 1 / 6 (16.7%)
Max absolute difference: 0.
Max relative difference: 0.
 x: array([[[[[0., 2.]],

         [[4., 5.]],...
 y: array([[[[[0., 2.]],

         [[4., 5.]],...

----------------------------------------------------------------------
Ran 9305 tests in 996.256s

FAILED (failures=4, skipped=601)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions