We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b323622 + f41d0f6 commit bb0013fCopy full SHA for bb0013f
nipype/interfaces/dipy/base.py
@@ -59,13 +59,8 @@ class DipyDiffusionInterface(DipyBaseInterface):
59
def _get_gradient_table(self):
60
bval = np.loadtxt(self.inputs.in_bval)
61
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)
+ from dipy.core.gradients import gradient_table
+ gtab = gradient_table(bval, bvec)
69
70
gtab.b0_threshold = self.inputs.b0_thres
71
return gtab
0 commit comments