Skip to content

Commit

Permalink
FIX: Validate and summarize multi-volume sbrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jul 10, 2024
1 parent 8731708 commit f58b2ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fmriprep/workflows/bold/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,14 @@ def init_bold_fit_wf(

# Select initial boldref, enhance contrast, and generate mask
fmapref_buffer.inputs.sbref_files = sbref_files
if sbref_files and nb.load(sbref_files[0]).ndim > 3:
raw_sbref_wf = init_raw_boldref_wf(

Check warning on line 469 in fmriprep/workflows/bold/fit.py

View check run for this annotation

Codecov / codecov/patch

fmriprep/workflows/bold/fit.py#L469

Added line #L469 was not covered by tests
name='raw_sbref_wf',
bold_file=sbref_files[0],
multiecho=len(sbref_files) > 1,
)
workflow.connect(raw_sbref_wf, 'outputnode.boldref', fmapref_buffer, 'sbref_files')

Check warning on line 474 in fmriprep/workflows/bold/fit.py

View check run for this annotation

Codecov / codecov/patch

fmriprep/workflows/bold/fit.py#L474

Added line #L474 was not covered by tests

enhance_boldref_wf = init_enhance_and_skullstrip_bold_wf(omp_nthreads=omp_nthreads)

ds_coreg_boldref_wf = init_ds_boldref_wf(
Expand Down

0 comments on commit f58b2ab

Please sign in to comment.