From 368319328f90237a9714a2863b60c1f235a79a2b Mon Sep 17 00:00:00 2001 From: full-Strix Date: Tue, 26 Mar 2024 12:05:54 +0100 Subject: [PATCH] Add 'affine' attribute to temp_data --- commit/core.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/commit/core.pyx b/commit/core.pyx index 8ea6f60..4d893cb 100755 --- a/commit/core.pyx +++ b/commit/core.pyx @@ -1515,6 +1515,7 @@ cdef class Evaluation : self.temp_data['niiISO_img'] = niiISO_img self.temp_data['streamline_weights'] = xic self.temp_data['RESULTS_path'] = RESULTS_path + self.temp_data['affine'] = self.niiDWI.affine if nibabel.__version__ >= '2.0.0' else self.niiDWI.get_affine() if hasattr(self.model, '_postprocess') and do_reweighting: self.model._postprocess(self.temp_data, verbose=self.verbose)