@@ -66,34 +66,34 @@ This will create a file "outputtestsave.py" with the following content:
6666 inode = Node(IdentityInterface(fields=['a'], mandatory_inputs=True), name="inode")
6767 # Node: testsave.testfunc
6868 testfunc = Node(Function(input_names=['a'], output_names=['output']), name="testfunc")
69+ testfunc.interface.ignore_exception = False
6970 def testfunc_1(in1):
7071 """dummy func
7172 """
7273 out = in1 + 'foo' + "out1"
7374 return out
7475
7576 testfunc.inputs.function_str = getsource(testfunc_1)
76- testfunc.inputs.ignore_exception = False
7777 testfunc.inputs.in1 = '-sub'
7878 testsave.connect(inode, "a", testfunc, "in1")
7979 # Node: testsave.bet2
8080 bet2 = MapNode(BET(), iterfield=['infile'], name="bet2")
81+ bet2.interface.ignore_exception = False
8182 bet2.iterables = ('frac', [0.4, 0.5])
8283 bet2.inputs.environ = {'FSLOUTPUTTYPE': 'NIFTI_GZ'}
83- bet2.inputs.ignore_exception = False
8484 bet2.inputs.output_type = 'NIFTI_GZ'
8585 bet2.terminal_output = 'stream'
8686 # Node: testsave.bet
8787 bet = Node(BET(), name="bet")
88+ bet.interface.ignore_exception = False
8889 bet.iterables = ('frac', [0.3, 0.4])
8990 bet.inputs.environ = {'FSLOUTPUTTYPE': 'NIFTI_GZ'}
90- bet.inputs.ignore_exception = False
9191 bet.inputs.output_type = 'NIFTI_GZ'
9292 bet.terminal_output = 'stream'
9393 # Node: testsave.maths
9494 maths = Node(ImageMaths(), name="maths")
95+ maths.interface.ignore_exception = False
9596 maths.inputs.environ = {'FSLOUTPUTTYPE': 'NIFTI_GZ'}
96- maths.inputs.ignore_exception = False
9797 maths.inputs.output_type = 'NIFTI_GZ'
9898 maths.terminal_output = 'stream'
9999 testsave.connect(bet2, ('mask_file', func), maths, "in_file2")
0 commit comments