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):
517517 frame .MRDiffusionSequence [0 ].DiffusionDirectionality
518518 != 'ISOTROPIC'
519519 )
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
524520 except IndexError :
525521 # Sequence tag is found but missing items!
526522 raise WrapperError ("Diffusion file missing information" )
527523 except AttributeError :
528524 # DiffusionDirectionality tag is not required
529525 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
530531
531532 assert len (self .frames ) == n_frames
532533 frame_indices = np .array (
You can’t perform that action at this time.
0 commit comments