Skip to content

Commit

Permalink
Update dmriprep/utils/vectors.py
Browse files Browse the repository at this point in the history
Co-Authored-By: Ariel Rokem <arokem@gmail.com>
  • Loading branch information
dPys and arokem authored Mar 24, 2020
1 parent 66f8b48 commit 49e0a0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dmriprep/utils/vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ def _rasb_to_bvec_list(in_rasb):
Returns
-------
List of b-vectors as floats.
Returns
--------
list : each element is a b-vector
"""
import numpy as np

Expand All @@ -480,4 +484,4 @@ def _rasb_to_bval_floats(in_rasb):
import numpy as np

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

0 comments on commit 49e0a0a

Please sign in to comment.