Skip to content

Commit

Permalink
sty: ruff
Browse files Browse the repository at this point in the history
fix: require niworkflows branch enh/flip_image that implements AxisFlip
  • Loading branch information
celprov committed Jun 20, 2024
1 parent 7a976df commit 94ac539
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions fmriprep/interfaces/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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,
)


Expand Down
13 changes: 10 additions & 3 deletions fmriprep/workflows/bold/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ nitransforms==23.0.1
# via
# niworkflows
# sdcflows
niworkflows==1.10.2
niworkflows @ git+https:/celprov/niworkflows@enh/flip_image
# via
# sdcflows
# smriprep
Expand Down

0 comments on commit 94ac539

Please sign in to comment.