Skip to content

Commit 94ac539

Browse files
committed
sty: ruff
fix: require niworkflows branch enh/flip_image that implements AxisFlip
1 parent 7a976df commit 94ac539

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

Diff for: fmriprep/interfaces/reports.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class FunctionalSummaryInputSpec(TraitedSpec):
233233
traits.Enum('lr_flip_warning', 'cost_original', 'cost_flipped'),
234234
traits.Either(traits.Bool(), traits.Float()),
235235
desc='Left-right flip check warning and registration costs',
236-
mandatory=True
236+
mandatory=True,
237237
)
238238
tr = traits.Float(desc='Repetition time', mandatory=True)
239239
dummy_scans = traits.Either(traits.Int(), None, desc='number of dummy scans specified by user')
@@ -415,7 +415,7 @@ class _CheckFlipOutputSpec(TraitedSpec):
415415
traits.Enum('warning', 'cost_original', 'cost_flipped'),
416416
traits.Either(traits.Bool(), traits.Float()),
417417
desc='Left-right flip check warning and registration costs',
418-
mandatory=True
418+
mandatory=True,
419419
)
420420

421421

Diff for: fmriprep/workflows/bold/registration.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,16 @@ def init_fsl_bbr_wf(
607607
)
608608

609609
def flip_detection_not_implemented_yet():
610-
return {'warning': 'Flip detection not implemented yet for alignment with FSL flirt', 'cost_original': '', 'cost_flipped': ''}
611-
612-
check_flip = pe.Node(niu.Function(function=flip_detection_not_implemented_yet, output_names=['flip_info']), name='check_flip')
610+
return {
611+
'warning': 'Flip detection not implemented yet for alignment with FSL flirt',
612+
'cost_original': '',
613+
'cost_flipped': '',
614+
}
615+
616+
check_flip = pe.Node(
617+
niu.Function(function=flip_detection_not_implemented_yet, output_names=['flip_info']),
618+
name='check_flip',
619+
)
613620
# fmt:off
614621
workflow.connect([
615622
(inputnode, mask_t1w_brain, [('t1w_preproc', 'in_file'),

Diff for: requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ nitransforms==23.0.1
198198
# via
199199
# niworkflows
200200
# sdcflows
201-
niworkflows==1.10.2
201+
niworkflows @ git+https://github.com/celprov/niworkflows@enh/flip_image
202202
# via
203203
# sdcflows
204204
# smriprep

0 commit comments

Comments
 (0)