Open vanossj opened 1 month ago
Thank you for the detailed report! We have a cli argumen --stop-on-error
which will halt execution if an error occurs (in combination with --print
the error message is routed to the stdout instead of the log files).
How we'll deal with incompliant dicom files could lead to an interesting discussion where I can see multiple strategies:
@fedorov
It's a known issue, unfortunately - related to https://github.com/QIICR/dcmqi/issues/232.
This problem came up from this issue when I tried to run the bamf_nnunet_ct_kidney model on a ct scan from TCGA-KIRC.
The issue is with series 1.3.6.1.4.1.14519.5.2.1.6450.4004.318185778053926832345567953536, you can reproduce the issue with the code below.
Download the series from the IDC
Run the bamf_nnunet_ct_kidney model
On my system it took about 12 minutes to run. Then finished with no warnings or errors, but the example_output directory was empty.
@jithenece dug in a bit and found that
itkimage2segimage
is reporting an error with the CT scan not being compliant with the dicom standard. He went into the container and ranitkimage2segimage --inputImageList VOLUME_001.nii.gz --inputDICOMDirectory dicom --outputDICOM seg.dcm --inputMetadata temp-meta.json
which gave the output:
I did run into these issues when working on AIMI, my solution was just to smash the referenced dicom into some sort of compliance so that
itkimage2segimage
would generate the segmentation image.This is the script I used to fix various dicom issues I came across as I worked on AIMI, but I would hope there is a better alternative somewhere out there for fixing dicom files.
It would be useful to have the
DsegConverter
step report the error