Skip to content

Commit

Permalink
Streamline if/else.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Jul 26, 2024
1 parent cbd08ec commit fab7966
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions smriprep/workflows/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,15 +724,11 @@ def init_ds_surfaces_wf(
run_without_submitting=True,
)
if surf.startswith('sphere_reg'):
if surf == 'sphere_reg_msm':
ds_surf.inputs.desc = 'msmsulc'
ds_surf.inputs.space, ds_surf.inputs.desc = 'fsaverage', 'reg' # Default
if surf == 'sphere_reg_fsLR':
ds_surf.inputs.space = 'fsLR'
else:
ds_surf.inputs.desc = 'reg'
if surf == 'sphere_reg_fsLR':
ds_surf.inputs.space = 'fsLR'
elif surf == 'sphere_reg':
ds_surf.inputs.space = 'fsaverage'
elif surf == 'sphere_reg_msm':
ds_surf.inputs.space, ds_surf.inputs.desc = 'fsLR', 'msmsulc'

# fmt:off
workflow.connect([
Expand Down

0 comments on commit fab7966

Please sign in to comment.