Skip to content

Commit c59b30b

Browse files
committed
fix: remove unnecessary check
1 parent 2af8950 commit c59b30b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/nicom/dicomwrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def image_shape(self):
550550
ns_unique.pop(1)
551551
shape = (rows, cols) + tuple(ns_unique)
552552
n_vols = np.prod(shape[3:])
553-
if n_frames == self.get('NumberOfFrames') and n_frames != n_vols * shape[2]:
553+
if n_frames != n_vols * shape[2]:
554554
raise WrapperError("Calculated shape does not match number of "
555555
"frames.")
556556
return tuple(shape)

0 commit comments

Comments
 (0)