diff --git a/fmriprep/interfaces/reports.py b/fmriprep/interfaces/reports.py index 64edda47..76d91a36 100644 --- a/fmriprep/interfaces/reports.py +++ b/fmriprep/interfaces/reports.py @@ -233,7 +233,7 @@ class FunctionalSummaryInputSpec(TraitedSpec): traits.Enum('lr_flip_warning', 'cost_original', 'cost_flipped'), traits.Either(traits.Bool(), traits.Float()), desc='Left-right flip check warning and registration costs', - mandatory=True + mandatory=True, ) tr = traits.Float(desc='Repetition time', mandatory=True) dummy_scans = traits.Either(traits.Int(), None, desc='number of dummy scans specified by user') @@ -415,7 +415,7 @@ class _CheckFlipOutputSpec(TraitedSpec): traits.Enum('warning', 'cost_original', 'cost_flipped'), traits.Either(traits.Bool(), traits.Float()), desc='Left-right flip check warning and registration costs', - mandatory=True + mandatory=True, ) diff --git a/fmriprep/workflows/bold/registration.py b/fmriprep/workflows/bold/registration.py index 0c71eeb7..ff9ce30c 100644 --- a/fmriprep/workflows/bold/registration.py +++ b/fmriprep/workflows/bold/registration.py @@ -607,9 +607,16 @@ def init_fsl_bbr_wf( ) def flip_detection_not_implemented_yet(): - return {'warning': 'Flip detection not implemented yet for alignment with FSL flirt', 'cost_original': '', 'cost_flipped': ''} - - check_flip = pe.Node(niu.Function(function=flip_detection_not_implemented_yet, output_names=['flip_info']), name='check_flip') + return { + 'warning': 'Flip detection not implemented yet for alignment with FSL flirt', + 'cost_original': '', + 'cost_flipped': '', + } + + check_flip = pe.Node( + niu.Function(function=flip_detection_not_implemented_yet, output_names=['flip_info']), + name='check_flip', + ) # fmt:off workflow.connect([ (inputnode, mask_t1w_brain, [('t1w_preproc', 'in_file'), diff --git a/pyproject.toml b/pyproject.toml index f707950a..2b3a3235 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ dependencies = [ "nireports @ git+https://github.com/nipreps/nireports.git@main", "nitime", "nitransforms >= 21.0.0", - "niworkflows @ git+https://github.com/nipreps/niworkflows.git@master", + "niworkflows @ git+https://github.com/celprov/niworkflows.git@enh/flip_image", "numpy >= 1.22", "packaging", "pandas",