Skip to content

Commit 7e1b11e

Browse files
dPysarokem
authored and
dPys
committed
Update dmriprep/utils/vectors.py
Co-Authored-By: Ariel Rokem <[email protected]>
1 parent 66f8b48 commit 7e1b11e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dmriprep/utils/vectors.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,9 @@ def bvecs2ras(affine, bvecs, norm=True, bvec_norm_epsilon=0.2):
379379

380380
def nonoverlapping_qspace_samples(sample_bval, sample_bvec, all_bvals,
381381
all_bvecs, cutoff=2):
382-
"""Ensure that none of the training samples are too close to the sample to predict.
383-
Parameters
382+
"""
383+
Checks the q-space overlap (within some distance) between a sample
384+
and a collection of q-space points.
384385
385386
Parameters
386387
----------
@@ -453,6 +454,7 @@ def _rasb_to_bvec_list(in_rasb):
453454
----------
454455
in_rasb : str or os.pathlike
455456
File path to a RAS-B gradient table.
457+
456458
Returns
457459
-------
458460
List of b-vectors as floats.
@@ -480,4 +482,4 @@ def _rasb_to_bval_floats(in_rasb):
480482
import numpy as np
481483

482484
ras_b_mat = np.genfromtxt(in_rasb, delimiter="\t")
483-
return [float(bval) for bval in ras_b_mat[:, 3] if bval > 0]
485+
return [float(bval) for bval in ras_b_mat[:, 3] if bval > 0]

0 commit comments

Comments
 (0)