Skip to content

Commit 7d34342

Browse files
josephmjeoesteban
andcommitted
Update dmriprep/interfaces/images.py
Co-Authored-By: Oscar Esteban <[email protected]>
1 parent c4be8f9 commit 7d34342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dmriprep/interfaces/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def extract_b0(in_file, b0_mask, newpath=None):
5252

5353
bvals = np.loadtxt(in_rasb, usecols=-1, skiprows=1)
5454

55-
b0 = data[..., bvals < b0_thres]
55+
b0 = data[..., np.array(b0_mask, dtype=bool)]
5656

5757
hdr = img.header.copy()
5858
hdr.set_data_shape(b0.shape)

0 commit comments

Comments
 (0)