Skip to content

Commit baaeeb2

Browse files
author
dmordom
committed
Added mapnode "serial" input argument comment description
Minor streamlining of serial argument test
1 parent cd5547a commit baaeeb2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

nipype/pipeline/engine.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,8 @@ def __init__(self, interface, iterfield, name, serial=False, **kwargs):
20092009
paired (i.e. it does not compute a combinatorial product).
20102010
name : alphanumeric string
20112011
node specific name
2012-
2012+
serial : boolean
2013+
flag to enforce executing the jobs of the mapnode in a serial manner rather than parallel
20132014
See Node docstring for additional keyword arguments.
20142015
"""
20152016

nipype/pipeline/tests/test_engine.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,7 @@ def func1(in1):
630630
'crashdump_dir': wd}
631631

632632
# test output of num_subnodes method when serial is default (False)
633-
num_subnodes_default = n1.num_subnodes()
634-
yield assert_equal, num_subnodes_default, len(n1.inputs.in1)
633+
yield assert_equal, n1.num_subnodes(), len(n1.inputs.in1)
635634

636635
# test running the workflow on default conditions
637636
error_raised = False
@@ -644,8 +643,7 @@ def func1(in1):
644643

645644
# test output of num_subnodes method when serial is True
646645
n1._serial=True
647-
num_subnodes_serial = n1.num_subnodes()
648-
yield assert_equal, num_subnodes_serial, 1
646+
yield assert_equal, n1.num_subnodes(), 1
649647

650648
# test running the workflow on serial conditions
651649
error_raised = False

0 commit comments

Comments
 (0)