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 d5995db commit b0ca59bCopy full SHA for b0ca59b
nibabel/nicom/dicomwrappers.py
@@ -756,13 +756,11 @@ def image_shape(self):
756
return (rows, cols)
757
# Initialize array of frame indices
758
try:
759
- frame_indices = np.array(
+ frame_indices = np.atleast_2d(
760
[frame.FrameContentSequence[0].DimensionIndexValues for frame in self.frames]
761
)
762
except AttributeError:
763
raise WrapperError("Can't find frame 'DimensionIndexValues'")
764
- if len(frame_indices.shape) == 1:
765
- frame_indices = frame_indices.reshape(frame_indices.shape + (1,))
766
# Determine the shape and which indices to use
767
shape = [rows, cols]
768
curr_parts = n_frames
0 commit comments