Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG in md.ai: series with different ids are merged
``` dicom_dir = "/path/mdai_uab_project_7YNdkRbz_images_dataset_D_vbqBVJ_2023-12-05-204930/2.25.110967036091011695929745405069706570938/2.25.5167441598658014961040621600906584607" io = itk.GDCMSeriesFileNames.New() io.AddSeriesRestriction("0008|0021") io.SetUseSeriesDetails(True) io.SetDirectory(str(dicom_dir)) io.Update() series_uids = io.GetSeriesUIDs() print(series_uids) ``` Gives two different series: ('2.25.5167441598658014961040621600906584607.2016051021.250000512512', '2.25.5167441598658014961040621600906584607.2016051022.500000512512') Where md.ai treat those as a single series_uid: `2.25.5167441598658014961040621600906584607` To workaround it, we log an error asking the user to solve it, but pick the series with more number of files. Chances are that the different serie id comes from a summary image.
- Loading branch information