Skip to content

Commit 377cacd

Browse files
committed
enh: allow naming a workflow
1 parent d6b27a2 commit 377cacd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/rsfmri_preprocessing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ def create_workflow(files,
699699
"""
700700

701701

702-
def create_resting_workflow(args):
702+
def create_resting_workflow(args, name='resting'):
703703
TR = args.TR
704704
slice_times = args.slice_times
705705
slice_thickness = None
@@ -722,7 +722,8 @@ def create_resting_workflow(args):
722722
slice_thickness=slice_thickness,
723723
lowpass_freq=args.lowpass_freq,
724724
highpass_freq=args.highpass_freq,
725-
sink_directory=os.path.abspath(args.sink))
725+
sink_directory=os.path.abspath(args.sink),
726+
name=name)
726727
if args.field_maps:
727728
kwargs.update(**dict(fieldmap_images=args.field_maps,
728729
FM_TEdiff=args.TE_diff,

0 commit comments

Comments
 (0)