@@ -66,34 +66,34 @@ This will create a file "outputtestsave.py" with the following content:
66
66
inode = Node(IdentityInterface(fields=['a'], mandatory_inputs=True), name="inode")
67
67
# Node: testsave.testfunc
68
68
testfunc = Node(Function(input_names=['a'], output_names=['output']), name="testfunc")
69
+ testfunc.interface.ignore_exception = False
69
70
def testfunc_1(in1):
70
71
"""dummy func
71
72
"""
72
73
out = in1 + 'foo' + "out1"
73
74
return out
74
75
75
76
testfunc.inputs.function_str = getsource(testfunc_1)
76
- testfunc.interface.ignore_exception = False
77
77
testfunc.inputs.in1 = '-sub'
78
78
testsave.connect(inode, "a", testfunc, "in1")
79
79
# Node: testsave.bet2
80
80
bet2 = MapNode(BET(), iterfield=['infile'], name="bet2")
81
+ bet2.interface.ignore_exception = False
81
82
bet2.iterables = ('frac', [0.4, 0.5])
82
83
bet2.inputs.environ = {'FSLOUTPUTTYPE': 'NIFTI_GZ'}
83
- bet2.inputs.ignore_exception = False
84
84
bet2.inputs.output_type = 'NIFTI_GZ'
85
85
bet2.terminal_output = 'stream'
86
86
# Node: testsave.bet
87
87
bet = Node(BET(), name="bet")
88
+ bet.interface.ignore_exception = False
88
89
bet.iterables = ('frac', [0.3, 0.4])
89
90
bet.inputs.environ = {'FSLOUTPUTTYPE': 'NIFTI_GZ'}
90
- bet.inputs.ignore_exception = False
91
91
bet.inputs.output_type = 'NIFTI_GZ'
92
92
bet.terminal_output = 'stream'
93
93
# Node: testsave.maths
94
94
maths = Node(ImageMaths(), name="maths")
95
+ maths.interface.ignore_exception = False
95
96
maths.inputs.environ = {'FSLOUTPUTTYPE': 'NIFTI_GZ'}
96
- maths.inputs.ignore_exception = False
97
97
maths.inputs.output_type = 'NIFTI_GZ'
98
98
maths.terminal_output = 'stream'
99
99
testsave.connect(bet2, ('mask_file', func), maths, "in_file2")
0 commit comments