Skip to content

Commit 8d57500

Browse files
author
IvanARashid
committed
Changed to dictionary outputs from osipi_fit
1 parent bce6ec7 commit 8d57500

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WrapImage/nifti_wrapper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ def loop_over_first_n_minus_1_dimensions(arr):
109109
n = data.ndim
110110
total_iteration = np.prod(data.shape[:n-1])
111111
for idx, view in tqdm(loop_over_first_n_minus_1_dimensions(data), desc=f"{args.algorithm} is fitting", dynamic_ncols=True, total=total_iteration):
112-
[f_fit, Dp_fit, D_fit] = fit.osipi_fit(view, bvals)
113-
f_image.append(f_fit)
114-
Dp_image.append(Dp_fit)
115-
D_image.append(D_fit)
112+
fit_result = fit.osipi_fit(view, bvals)
113+
f_image.append(fit_result["f"])
114+
Dp_image.append(fit_result["D*"])
115+
D_image.append(fit_result["D"])
116116

117117
# Convert lists to NumPy arrays
118118
f_image = np.array(f_image)

0 commit comments

Comments
 (0)