Describe the bug
Running LoadImage(reader="ITKReader") without itk installed will just warn that itk is not installed and will proceed with using PILReader instead.
|
f"required package for reader {r} is not installed, or the version doesn't match requirement." |
Expected behavior
If the specified reader is not installed, an exception should be raised.
Describe the bug
Running
LoadImage(reader="ITKReader")withoutitkinstalled will just warn thatitkis not installed and will proceed with usingPILReaderinstead.MONAI/monai/transforms/io/array.py
Line 185 in 33afaef
Expected behavior
If the specified reader is not installed, an exception should be raised.