Skip to content

conda test errors #5425

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

Closed
wyli opened this issue Oct 28, 2022 · 0 comments · Fixed by #5426
Closed

conda test errors #5425

wyli opened this issue Oct 28, 2022 · 0 comments · Fixed by #5426
Assignees

Comments

@wyli
Copy link
Contributor

wyli commented Oct 28, 2022

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)
@wyli wyli self-assigned this Oct 28, 2022
@wyli wyli mentioned this issue Oct 28, 2022
7 tasks
@wyli wyli closed this as completed in 3f82016 Oct 28, 2022
wyli added a commit that referenced this issue Oct 31, 2022
KumoLiu pushed a commit that referenced this issue Nov 2, 2022
Fixes #5425

tested: https://github.com/Project-MONAI/MONAI/actions/runs/3344552788

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: KumoLiu <[email protected]>
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 a pull request may close this issue.

1 participant