Skip to content

Commit bb0013f

Browse files
committed
Merge pull request #1484 from kesshijordan/master
FIX: The GradientTable object should be immutable; the bvalues aren't
2 parents b323622 + f41d0f6 commit bb0013f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

nipype/interfaces/dipy/base.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,8 @@ class DipyDiffusionInterface(DipyBaseInterface):
5959
def _get_gradient_table(self):
6060
bval = np.loadtxt(self.inputs.in_bval)
6161
bvec = np.loadtxt(self.inputs.in_bvec).T
62-
try:
63-
from dipy.data import GradientTable
64-
gtab = GradientTable(bvec)
65-
gtab.bvals = bval
66-
except NameError:
67-
from dipy.core.gradients import gradient_table
68-
gtab = gradient_table(bval, bvec)
62+
from dipy.core.gradients import gradient_table
63+
gtab = gradient_table(bval, bvec)
6964

7065
gtab.b0_threshold = self.inputs.b0_thres
7166
return gtab

0 commit comments

Comments
 (0)