-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get attribute from Philips DICOM: Calculated shape does not match number of frames. #1211
Comments
Yarik, is this something that you can debug and propose a fix for? Do we need to call in Brendan or someone else? |
forgot about this one... I will try to do. Relates to #1245 and also not reported here nipy/heudiconv#633 as all are triggered by |
more info as instigated from #1296 (comment) Some DICOM guru might be needed for that ;) FWIW it is the http://github.com/neurolabusc/dcm_qa_fmap repo and we get ❯ dcm2niix -o . IM_0027_fMAP.dcm
Chris Rorden's dcm2niiX version v1.0.20220720 (JP2:OpenJPEG) GCC13.2.0 x86-64 (64-bit Linux)
Found 1 DICOM file(s)
Warning: Philips enhanced DICOMs (hint: export as classic DICOM)
Philips Scaling Values RS:RI:SS = 1.27985:0:8.44864e-06 (see PMC3998685)
Convert 1 DICOM as ./fmap_WIP_B0_NS_20180526150245_801_e1 (64x64x32x1)
Philips Scaling Values RS:RI:SS = 0.2442:-500:4.095 (see PMC3998685)
Convert 1 DICOM as ./fmap_WIP_B0_NS_20180526150245_801_e2_fieldmaphz (64x64x32x1)
Conversion required 0.004854 seconds (0.004851 for core code).
❯ nib-ls *nii
fmap_WIP_B0_NS_20180526150245_801_e1.nii int16 [ 64, 64, 32] 4.00x4.00x4.00 sform
fmap_WIP_B0_NS_20180526150245_801_e2_fieldmaphz.nii int16 [ 64, 64, 32] 4.00x4.00x4.00 sform
given this crummy scriptimport sys;
from nibabel.nicom import dicomwrappers as didw;
f=sys.argv[1];
print(f);
shape = didw.wrapper_from_file(f).image_shape
print(shape) so we clearly could improve code there to at least not compare banas to oranges and make exception more informative.... |
Originally brought to try on these DICOMs in the context of nipy/heudiconv#575 (comment) and trying on Philips DICOMs within http://github.com/neurolabusc/dcm_qa_enh by @neurolabusc for enhanced Philips dicoms for sw 5.3.0:
where attempt to run heudiconv crashed
I found an oldish fixed issue #693 relating to the same "Effect", and then reproduced with similar minimalish reproducer on a sample file from that repo with master version of nibabel:
The text was updated successfully, but these errors were encountered: