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 4063114 commit 14c24efCopy full SHA for 14c24ef
nibabel/nicom/dicomwrappers.py
@@ -581,11 +581,10 @@ def image_shape(self):
581
frames_per_part = 1
582
del_indices = {}
583
for row_idx, row in enumerate(frame_indices.T):
584
- if curr_parts == 1:
585
- break
586
unique = np.unique(row)
587
count = len(unique)
588
- if count == 1:
+ if count == 1 or curr_parts == 1:
+ del_indices[row_idx] = count
589
continue
590
# Replace slice indices with order determined from slice positions along normal
591
if len(shape) == 2:
0 commit comments