Project-MONAI/MONAI

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

Open

#7,437 建立於 2024年2月3日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)Python (888 fork)batch import
Contribution wantedenhancementgood first issue

倉庫指標

Star
 (4,800 star)
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.

貢獻者指南