File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -517,16 +517,17 @@ def image_shape(self):
517
517
frame .MRDiffusionSequence [0 ].DiffusionDirectionality
518
518
!= 'ISOTROPIC'
519
519
)
520
- if n_frames != len (self .frames ):
521
- warnings .warn ("Derived images found and removed" )
522
- n_frames = len (self .frames )
523
- has_derived = True
524
520
except IndexError :
525
521
# Sequence tag is found but missing items!
526
522
raise WrapperError ("Diffusion file missing information" )
527
523
except AttributeError :
528
524
# DiffusionDirectionality tag is not required
529
525
pass
526
+ else :
527
+ if n_frames != len (self .frames ):
528
+ warnings .warn ("Derived images found and removed" )
529
+ n_frames = len (self .frames )
530
+ has_derived = True
530
531
531
532
assert len (self .frames ) == n_frames
532
533
frame_indices = np .array (
You can’t perform that action at this time.
0 commit comments