Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
ENH: Save the DWI GP estimation notebook figures
Browse files Browse the repository at this point in the history
Save the DWI GP estimation notebook figures.
  • Loading branch information
jhlegarreta committed Nov 9, 2024
1 parent 82749c4 commit 6dc7e89
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/notebooks/dwi_gp_estimation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
],
"source": [
"affine = nib.load(dwi_fname).affine\n",
"plot_dwi(shell_data[..., dwi_vol_idx], affine, gradient=np.concatenate((np.squeeze(X_test), [1000])))"
"plot_dwi(shell_data[..., dwi_vol_idx], affine, gradient=np.concatenate((np.squeeze(X_test), [1000])), output_file=\"sherbrooke_3shell_b1k_data.svg\")"
]
},
{
Expand Down Expand Up @@ -221,9 +221,7 @@
"output_type": "display_data"
}
],
"source": [
"plot_dwi(dwi_sim, affine, gradient=np.concatenate((np.squeeze(X_test), [1000])))"
]
"source": "plot_dwi(dwi_sim, affine, gradient=np.concatenate((np.squeeze(X_test), [1000])), output_file=\"sherbrooke_3shell_b1k_gp_noopt_pred.svg\")"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -452,7 +450,7 @@
"source": [
"plot_dwi(dwi_sim, affine, gradient=np.concatenate((np.squeeze(X_test), [1000])))\n",
"plot_dwi(shell_data[..., dwi_vol_idx], affine, gradient=np.concatenate((np.squeeze(X_test), [1000])))\n",
"plot_dwi(dwi_sim2, affine, gradient=np.concatenate((np.squeeze(X_test), [1000])))"
"plot_dwi(dwi_sim2, affine, gradient=np.concatenate((np.squeeze(X_test), [1000])), output_file=\"sherbrooke_3shell_b1k_gp_opt_pred.svg\")"
]
},
{
Expand Down

0 comments on commit 6dc7e89

Please sign in to comment.