Project-MONAI/MONAI

Raise the exception when LoadImage has a reader specified but it is not installed

已关闭

#7,437 创建于 2024年2月3日

 (7 条评论) (0 个反应) (1 位负责人)Python (888 个派生)batch import
Contribution wantedenhancementgood first issue

仓库指标

星标
 (4,800 个星标)
PR 合并指标
 (平均合并 20天 8小时) (30 天内合并 35 个 PR)

描述

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.

https://github.com/Project-MONAI/MONAI/blob/33afaefff925dce45b8331e8290f234a4d95fd51/monai/transforms/io/array.py#L185

Expected behavior If the specified reader is not installed, an exception should be raised.

贡献者指南