Skip to content

Commit

Permalink
Fix epi bval loading. (#913)
Browse files Browse the repository at this point in the history
Update epi_fmap.py
  • Loading branch information
smeisler authored Jan 13, 2025
1 parent 4799ffc commit 17d3d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qsiprep/interfaces/epi_fmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def load_epi_dwi_fieldmaps(fmap_list, b0_threshold):
# Which images are b=0 images?
if op.exists(potential_bval_file):
# If there is a secret bval file, check that it's allowed
bvals = np.loadtxt(potential_bval_file)
bvals = np.loadtxt(potential_bval_file, ndmin=1)
if fmap_img.ndim == 3 and len(bvals) == 1:
_b0_indices = np.arange(num_images) + starting_index
elif fmap_img.ndim == 4 and len(bvals) == fmap_img.shape[3]:
Expand Down

0 comments on commit 17d3d69

Please sign in to comment.