Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix failing unit-test test_wsireader (#7905)
Conversion of units when the unit if '' caused the test to fail. ```bash pytest -k tiff ``` FAILED tests/test_wsireader.py::TestTiffFile::test_resolution_mpp_0__home_johnsonhj_src_MONAI_tests_testing_data_temp_wsi_generic_tiff_tiff - ValueError: Currently, it only supports length conversion but `` is given. FAILED tests/test_wsireader.py::TestTiffFile::test_resolution_mpp_0__home_johnsonhj_src_MONAI_tests_testing_data_temp_wsi_generic_tiff_tiff - AttributeError: 'ConvertUnits' object has no attribute 'conversion_factor' ### Description Fixes a failing test. ### Types of changes - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [x] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [x] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. Signed-off-by: Hans Johnson <hans-johnson@uiowa.edu> Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
- Loading branch information