[BUG]: cannot load a nifti
image in the medical folder dataset of Fed-BioMed if it contains dots (.
) in its name
#1105
Labels
bug
this issue is about reporting and resolving a suspected bug
good first issue
nice to pick for a new contributor
in review
issue implementation is finished, a merge request open and is ready for review (or under review)
When loading a medical folder dataset, if the name of your image contains dots
.
, the medical folder dataset loader fails to recognize it as a nifti image and raise an errorIndexError
.As an example, if I load
my.nifti.image.nii
, medical folder dataset parses it as of extensionnifti.image.nii
instead ofnii
and fails to load the dataset.This is due in the code of the
p.suffixes
inload_image
in theMedicalFolderDataset
that only considers what remains after the first dot as the file extension, which is a weak way to process file name.The text was updated successfully, but these errors were encountered: