Skip to content

Commit 1877067

Browse files
committed
fix error
1 parent 4597ec2 commit 1877067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/workflows/dmri/fsl/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def b0_average(in_dwi, in_bval, max_b=10.0, out_file=None):
405405
imgs = np.array(nb.four_to_three(nb.load(in_dwi)))
406406
bval = np.loadtxt(in_bval)
407407
b0s = [im.get_data().astype(np.float32)
408-
for im in imgs[np.where(bval <= maxb)]]
408+
for im in imgs[np.where(bval <= max_b)]]
409409
b0 = np.average(np.array(b0s), axis=0)
410410

411411
hdr = imgs[0].get_header().copy()

0 commit comments

Comments
 (0)