diff --git a/fmriprep/workflows/bold/fit.py b/fmriprep/workflows/bold/fit.py index acb11b5d2..200ca3dd2 100644 --- a/fmriprep/workflows/bold/fit.py +++ b/fmriprep/workflows/bold/fit.py @@ -525,7 +525,7 @@ def init_bold_native_wf( (md := layout.get_metadata(bold_file), bold_file, md.get("EchoTime")) for bold_file in listify(bold_series) ), - key=lambda _, __, echo_time: echo_time, + key=lambda x: x[2], ) ) multiecho = len(bold_files) > 1 diff --git a/fmriprep/workflows/bold/resampling.py b/fmriprep/workflows/bold/resampling.py index 4a2dd5511..1649cd0d2 100644 --- a/fmriprep/workflows/bold/resampling.py +++ b/fmriprep/workflows/bold/resampling.py @@ -194,7 +194,7 @@ def select_target(subject_id, space): ("source_file", "reference"), ("fsnative2t1w_xfm", "in_xfms"), ]), - (get_fsnative, itk2lta, [("T1", "dst_file")]), + (get_fsnative, itk2lta, [("T1", "moving")]), (inputnode, sampler, [ ("subjects_dir", "subjects_dir"), ("subject_id", "subject_id"), diff --git a/fmriprep/workflows/tests/__init__.py b/fmriprep/workflows/tests/__init__.py index ec2e6aa8f..2861e70da 100644 --- a/fmriprep/workflows/tests/__init__.py +++ b/fmriprep/workflows/tests/__init__.py @@ -36,7 +36,7 @@ @contextmanager def mock_config(): """Create a mock config for documentation and testing purposes.""" - from .. import config + from ... import config _old_fs = os.getenv('FREESURFER_HOME') if not _old_fs: