-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Is your feature request related to a problem? Please describe.
When I try to load a DICOM folder, the loading will fail if there is some irrelevant file in the folder (or I have to set force=True). E.g., when I load the DICOM series from the LIDC-IDRI database, there's a .xml annotation file in the folder, the loader will try to load it as well and cause failure.
Describe the solution you'd like
Change this line
MONAI/monai/data/image_reader.py
Line 469 in 2cbed6c
| series_slcs = glob.glob(os.path.join(name, "*")) |
to something like
series_slcs = Path(name).glob("*.dcm")I'm not sure if there are other suffixes to be considered.