Open
Description
Describe the bug
series_reader = sitk.ImageSeriesReader()
series_ids = series_reader.GetGDCMSeriesIDs(source)
series_files = {series_id: series_reader.GetGDCMSeriesFileNames(source, series_id)
for series_id in series_ids}
When source contains duplicate slices. The returned series_files is not in order. And no error or warning is thrown.
To Reproduce
Steps to reproduce the behavior:
- Operating system, version, and architecture
- OS: Ubuntu 24.04 LTS
- Architecture: 12th Gen Intel® Core™ i7-1265U × 12
- Programming language, and version
Python 3.8.19 - Version of SimpleITK
2.2.1 - How was SimpleITK installed?
- binary distribution [e.g. python -m pip install SimpleITK]
Activity
zivy commentedon Jan 9, 2025
Hello @xianghui-formuslabs,
This bug has been traced to ITK and the underlying GDCM library. A bug report was created on the GDCM issue tracker and hopefully @malaterre will address or provide guidance on how we can address the issue.
@dzenanz, should this also open an issue on the ITK tracker? I don't think so as this is a GDCM issue, but just bringing it to your attention.
dzenanz commentedon Jan 9, 2025
Either is fine - opening an issue in ITK which links here, or skipping that step. Either way, let's update GDCM as soon as this issue is fixed.
blowekamp commentedon Jan 9, 2025
Nice job tracking down the issue.