We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca5cd31 commit b8f32bfCopy full SHA for b8f32bf
nibabel/nicom/dicomwrappers.py
@@ -550,7 +550,7 @@ def image_shape(self):
550
ns_unique.pop(1)
551
shape = (rows, cols) + tuple(ns_unique)
552
n_vols = np.prod(shape[3:])
553
- if n_frames == self.get('NumberOfFrames') and n_frames != n_vols * shape[2]:
+ if n_frames != n_vols * shape[2]:
554
raise WrapperError("Calculated shape does not match number of "
555
"frames.")
556
return tuple(shape)
0 commit comments