dcmstack
dcmstack copied to clipboard
DicomStack.to_nifti(embed_meta=True) fails for 5D and 4D dicoms
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