conda test errors: test_matshow3d
See original GitHub issueDescribe the bug
======================================================================
FAIL: test_samples (tests.test_matshow3d.TestMatshow3d)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/runner/work/MONAI/MONAI/tests/test_matshow3d.py", line 70, in test_samples
np.testing.assert_allclose(comp["rms"], 30.786983, atol=1e-3, rtol=1e-3)
File "/usr/local/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/local/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=0.001, atol=0.001
Mismatched elements: 1 / 1 (100%)
Max absolute difference: 4.74991119
Max relative difference: 0.1542831
x: array(26.037072)
y: array(30.786983)
======================================================================
FAIL: test_plot (tests.test_threadcontainer.TestThreadContainer)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/runner/work/MONAI/MONAI/tests/test_threadcontainer.py", line 107, in test_plot
self.assertIsNone(comp, comp) # None indicates test passed
AssertionError: 'Error: Image files did not match.\n RMS Value: 28.09905059190909\n Expected: \n /Users/runner/work/MONAI/MONAI/tests/testing_data/threadcontainer_plot_test.png\n Actual: \n /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpav42fn_w/threadcontainer_plot_test.png\n Difference:\n /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpav42fn_w/threadcontainer_plot_test-failed-diff.png\n Tolerance: \n 0.05' is not None : Error: Image files did not match.
RMS Value: 28.09905059190909
Expected:
/Users/runner/work/MONAI/MONAI/tests/testing_data/threadcontainer_plot_test.png
Actual:
/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpav42fn_w/threadcontainer_plot_test.png
Difference:
/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpav42fn_w/threadcontainer_plot_test-failed-diff.png
Tolerance:
0.05
----------------------------------------------------------------------
Ran 5904 tests in 1950.197s
FAILED (failures=2, skipped=355)
Issue Analytics
- State:
- Created a year ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Troubleshooting
Permission denied errors after using sudo conda command. Already installed error message ... conda create myenv python conda activate myenv echo test.
Read more >Python conda run incorrect environment path · Issue #18493
Behaviour I get the following error when running pytest test discovery. It looked like the environment path is getting duplicated: ...
Read more >Error running tests with Conda and Tox - python
I am having trouble running tests with Tox while having virtual environments created with Conda. The steps to reproduce the error are below....
Read more >Troubleshooting
403 error; HTTP 000 CONNECTION FAILED; Anaconda installer download problems ... Error message on Miniconda install: Already installed; Conda update anaconda ...
Read more >Introduction to Conda for (Data) Scientists: Setup
Mac and Linux users can check whether Conda is installed by running the following ... If you get the error message “You cannot...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s possibly a version issue, the corresponding environment in a non-conda setup is here (example) https://github.com/Project-MONAI/MONAI/runs/5702401097?check_suite_focus=true
To debug, you can push to your fork with a temp branch and with the config modification to trigger the test like this https://github.com/Project-MONAI/MONAI/commit/238d883a92d11bea021ebd605837c9cdbfc78d2f
appears to be addressed by https://github.com/Project-MONAI/MONAI/pull/4044