Skip to content

Commit

Permalink
sty: ruff
Browse files Browse the repository at this point in the history
enh: point to new branch of niworkflows that implement AxisFlip
  • Loading branch information
celprov committed Jun 20, 2024
1 parent 7a976df commit 4232b3a
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 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4232b3a

Please sign in to comment.