Project-MONAI/MONAI

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

Fermée

#7 437 ouverte le 3 févr. 2024

 (7 commentaires) (0 réaction) (1 personne assignée)Python (888 forks)batch import
Contribution wantedenhancementgood first issue

Métriques du dépôt

Stars
 (4 800 étoiles)
Métriques de merge PR
 (Merge moyen 20j 8h) (35 PRs mergées en 30 j)

Description

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.

Guide contributeur