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/requirements.txt b/requirements.txt index 1f94ac07..a17a801b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -198,7 +198,7 @@ nitransforms==23.0.1 # via # niworkflows # sdcflows -niworkflows==1.10.2 +niworkflows @ git+https://github.com/celprov/niworkflows@enh/flip_image # via # sdcflows # smriprep