diff --git a/nipype/algorithms/confounds.py b/nipype/algorithms/confounds.py index 2905da0fd9..087b273190 100644 --- a/nipype/algorithms/confounds.py +++ b/nipype/algorithms/confounds.py @@ -127,9 +127,9 @@ def _run_interface(self, runtime): dvars = compute_dvars(self.inputs.in_file, self.inputs.in_mask, remove_zerovariance=self.inputs.remove_zerovariance) - self._results['avg_std'] = dvars[0].mean() - self._results['avg_nstd'] = dvars[1].mean() - self._results['avg_vxstd'] = dvars[2].mean() + self._results['avg_std'] = float(dvars[0].mean()) + self._results['avg_nstd'] = float(dvars[1].mean()) + self._results['avg_vxstd'] = float(dvars[2].mean()) tr = None if isdefined(self.inputs.series_tr):