From 9de19dee00ee9178cbce1979e51b466cf1c7e979 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 6 Dec 2024 11:28:30 -0500 Subject: [PATCH] Return the mean M0 TR in ExtractCBF (#470) --- aslprep/interfaces/cbf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aslprep/interfaces/cbf.py b/aslprep/interfaces/cbf.py index e5b13b5d9..11fd383e2 100644 --- a/aslprep/interfaces/cbf.py +++ b/aslprep/interfaces/cbf.py @@ -285,7 +285,7 @@ def _run_interface(self, runtime): metadata[field] = value self._results['metadata'] = metadata - self._results['m0tr'] = m0tr + self._results['m0tr'] = np.mean(m0tr) if m0tr is not None else None self._results['out_file'] = fname_presuffix( self.inputs.name_source, suffix='_DeltaMOrCBF',