File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -678,8 +678,17 @@ def _list_outputs(self):
678
678
'_variance.ext' , cwd = cwd )
679
679
outputs ['std_img' ] = self ._gen_fname (outputs ['out_file' ] +
680
680
'_sigma.ext' , cwd = cwd )
681
+
682
+ # The mean image created if -stats option is specified ('meanvol')
683
+ # is missing the top and bottom slices. Therefore we only expose the
684
+ # mean image created by -meanvol option ('mean_reg') which isn't
685
+ # corrupted.
686
+ # Note that the same problem holds for the std and variance image.
687
+
688
+ if isdefined (self .inputs .mean_vol ) and self .inputs .mean_vol :
681
689
outputs ['mean_img' ] = self ._gen_fname (outputs ['out_file' ] +
682
- '_meanvol.ext' , cwd = cwd )
690
+ '_mean_reg.ext' , cwd = cwd )
691
+
683
692
if isdefined (self .inputs .save_mats ) and self .inputs .save_mats :
684
693
_ , filename = os .path .split (outputs ['out_file' ])
685
694
matpathname = os .path .join (cwd , filename + '.mat' )
You can’t perform that action at this time.
0 commit comments