Skip to content

Commit 0a3360a

Browse files
authored
Merge pull request #39 from jhlegarreta/CallDIPYFuncsWithKeywordArgs
ENH: Use keyword arguments when calling DIPY keyword arg functions
2 parents 12e1422 + bc347ed commit 0a3360a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/dwi_gp_estimation_signal_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def main() -> None:
115115
y_pred = load_api(args.dwi_pred_data_fname, nb.Nifti1Image).get_fdata()
116116

117117
bvals, bvecs = read_bvals_bvecs(str(args.bval_data_fname), str(args.bvec_data_fname))
118-
gtab = gradient_table(bvals, bvecs)
118+
gtab = gradient_table(bvals, bvecs=bvecs)
119119

120120
# Pick one voxel randomly
121121
rng = np.random.default_rng(1234)

src/nifreeze/model/_dipy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,5 +286,5 @@ def _rasb2dipy(gradient):
286286
from dipy.core.gradients import gradient_table
287287

288288
warnings.filterwarnings("ignore", category=UserWarning)
289-
retval = gradient_table(gradient[3, :], gradient[:3, :].T)
289+
retval = gradient_table(gradient[3, :], bvecs=gradient[:3, :].T)
290290
return retval

src/nifreeze/testing/simulations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def create_single_shell_gradient_table(
178178

179179
# Add a b0 value to the gradient table
180180
bvals, bvecs = add_b0(bvals, bvecs)
181-
return gradient_table(bvals, bvecs)
181+
return gradient_table(bvals, bvecs=bvecs)
182182

183183

184184
def get_query_vectors(

0 commit comments

Comments
 (0)