Skip to content

Commit 3091e7e

Browse files
committed
fix error in input names
1 parent 6b00c67 commit 3091e7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipype/interfaces/dipy/simulate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ def _run_interface(self, runtime):
132132
b0 = np.array([b0_im.get_data()[msk > 0]]).T
133133
args = np.hstack((args, b0))
134134

135-
if isdefined(self.inputs.bval) and isdefined(self.inputs.bvec):
135+
if isdefined(self.inputs.in_bval) and isdefined(self.inputs.in_bvec):
136136
# Load the gradient strengths and directions
137-
bvals = np.loadtxt(self.inputs.bval)
138-
bvecs = np.loadtxt(self.inputs.bvec).T
137+
bvals = np.loadtxt(self.inputs.in_bval)
138+
bvecs = np.loadtxt(self.inputs.in_bvec).T
139139

140140
# Place in Dipy's preferred format
141141
gtab = gradient_table(bvals, bvecs)
@@ -144,7 +144,7 @@ def _run_interface(self, runtime):
144144
self.inputs.bvalues)
145145

146146
np.savetxt(op.abspath(self.inputs.out_bvec), gtab.bvecs.T)
147-
np.savetxt(op.abspath(self.inputs.out_bval), gtab.bvals.T)
147+
np.savetxt(op.abspath(self.inputs.out_bval), gtab.bvals)
148148

149149
snr = self.inputs.snr
150150
args = [tuple(np.hstack((r, gtab, snr))) for r in args]

0 commit comments

Comments
 (0)