File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -547,9 +547,15 @@ def image_shape(self):
547
547
if stackid_tag in dim_seq :
548
548
stackid_dim_idx = dim_seq .index (stackid_tag )
549
549
frame_indices = np .delete (frame_indices , stackid_dim_idx , axis = 1 )
550
+ dim_seq .pop (stackid_dim_idx )
550
551
if has_derived :
551
552
# derived volume is included
552
- frame_indices = np .delete (frame_indices , 1 , axis = 1 )
553
+ derived_tag = tag_for_keyword ("DiffusionBValue" )
554
+ if derived_tag not in dim_seq :
555
+ raise WrapperError ("Missing information, cannot remove indices "
556
+ "with confidence." )
557
+ derived_dim_idx = dim_seq .index (derived_tag )
558
+ frame_indices = np .delete (frame_indices , derived_dim_idx , axis = 1 )
553
559
# account for the 2 additional dimensions (row and column) not included
554
560
# in the indices
555
561
n_dim = frame_indices .shape [1 ] + 2
You can’t perform that action at this time.
0 commit comments