File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ class _BSplineApproxInputSpec(BaseInterfaceInputSpec):
90
90
91
91
92
92
class _BSplineApproxOutputSpec (TraitedSpec ):
93
+ out_intercept = traits .Float
93
94
out_field = File (exists = True )
94
95
out_coeff = OutputMultiObject (File (exists = True ))
95
96
out_error = File (exists = True )
@@ -226,7 +227,7 @@ def _run_interface(self, runtime):
226
227
f"Extreme value { extreme :.2e} detected in spline coefficients."
227
228
)
228
229
229
- LOGGER . info ( f"Model fit. Intercept = { model .intercept_ } " )
230
+ self . _results [ "out_intercept" ] = model .intercept_
230
231
231
232
# Store coefficients
232
233
index = 0
@@ -273,7 +274,7 @@ def _run_interface(self, runtime):
273
274
# Write out fitting-error map
274
275
self ._results ["out_error" ] = out_name .replace ("_field." , "_error." )
275
276
fmapnii .__class__ (
276
- data * mask - interp_data , fmapnii .affine , fmapnii .header
277
+ data * mask - interp_data + model . intercept_ , fmapnii .affine , fmapnii .header
277
278
).to_filename (self ._results ["out_error" ])
278
279
279
280
if not self .inputs .extrapolate :
You can’t perform that action at this time.
0 commit comments