dcmstack icon indicating copy to clipboard operation
dcmstack copied to clipboard

DicomStack.to_nifti(embed_meta=True) fails for 5D and 4D dicoms

Open AlanKuurstra opened this issue 1 year ago • 0 comments

When embedding metadata, DicomStack does not account for 5D or 4D data stored in a single dicom.

https://github.com/moloney/dcmstack/blob/27856f1b964b7ec9cf6cb5bb8e4b6f25596df4b4/src/dcmstack/dcmstack.py#L961-L975

The if statements on len(data.shape) should also include a condition on len(vol_meta) > 1

AlanKuurstra avatar Sep 19 '24 14:09 AlanKuurstra