moloney / dcmstack

DICOM to Nifti conversion with meta data preservation
Other
72 stars 51 forks source link

Skip conversion on None type #86

Closed LinieKiste closed 1 month ago

LinieKiste commented 8 months ago

Hi, when using dcmstack with this Dataset, there seem to be fields in the DICOM header which have a VR set, but contain no actual value. The conversion step then fails because we cannot iterate over a None value. I'm not experienced in this area, but this PR would be my approach to fixing it. Related to #85

moloney commented 1 month ago

Thanks for the help, I went ahead and merged with a test case here