Skip to content

Commit 77bcb60

Browse files
committed
fix multiproc access to terminal_output
1 parent 9e3ee31 commit 77bcb60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/pipeline/plugins/multiproc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ def _submit_job(self, node, updatehash=False):
139139
self._taskid += 1
140140

141141
# Don't allow streaming outputs
142-
if node.terminal_output == 'stream':
143-
node.terminal_output = 'allatonce'
142+
if hasattr(node.interface, 'terminal_output') and \
143+
node.interface.terminal_output == 'stream':
144+
node.interface.terminal_output = 'allatonce'
144145

145146
self._task_obj[self._taskid] = self.pool.apply_async(
146147
run_node, (node, updatehash, self._taskid),

0 commit comments

Comments
 (0)