From f41d0f678256ae5e1d90dc450e16cf022e507b85 Mon Sep 17 00:00:00 2001 From: kesshijordan Date: Wed, 25 May 2016 12:05:35 -0700 Subject: [PATCH] FIX: The GradientTable object should be immutable; the bvalues aren't being passed into the object correctly, so I changed the function used to create the GradientTable object --- nipype/interfaces/dipy/base.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/nipype/interfaces/dipy/base.py b/nipype/interfaces/dipy/base.py index d760172710..179438d024 100644 --- a/nipype/interfaces/dipy/base.py +++ b/nipype/interfaces/dipy/base.py @@ -59,13 +59,8 @@ class DipyDiffusionInterface(DipyBaseInterface): def _get_gradient_table(self): bval = np.loadtxt(self.inputs.in_bval) bvec = np.loadtxt(self.inputs.in_bvec).T - try: - from dipy.data import GradientTable - gtab = GradientTable(bvec) - gtab.bvals = bval - except NameError: - from dipy.core.gradients import gradient_table - gtab = gradient_table(bval, bvec) + from dipy.core.gradients import gradient_table + gtab = gradient_table(bval, bvec) gtab.b0_threshold = self.inputs.b0_thres return gtab