Skip to content

Commit

Permalink
Changed to dictionary outputs from osipi_fit
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanARashid committed Dec 10, 2024
1 parent bce6ec7 commit 8d57500
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions WrapImage/nifti_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ def loop_over_first_n_minus_1_dimensions(arr):
n = data.ndim
total_iteration = np.prod(data.shape[:n-1])
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):
[f_fit, Dp_fit, D_fit] = fit.osipi_fit(view, bvals)
f_image.append(f_fit)
Dp_image.append(Dp_fit)
D_image.append(D_fit)
fit_result = fit.osipi_fit(view, bvals)
f_image.append(fit_result["f"])
Dp_image.append(fit_result["D*"])
D_image.append(fit_result["D"])

# Convert lists to NumPy arrays
f_image = np.array(f_image)
Expand Down

0 comments on commit 8d57500

Please sign in to comment.