Skip to content

Commit fa3e2b8

Browse files
authored
Merge pull request #2786 from oesteban/fix/plugin-by-instance
[FIX] MapNodes fail when ``MultiProcPlugin`` passed by instance
2 parents ffb8a16 + 54718c7 commit fa3e2b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nipype/pipeline/engine/workflows.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ def run(self, plugin=None, plugin_args=None, updatehash=False):
566566
plugin = config.get('execution', 'plugin')
567567
if not isinstance(plugin, (str, bytes)):
568568
runner = plugin
569+
plugin = runner.__class__.__name__[:-len('Plugin')]
570+
plugin_args = runner.plugin_args
569571
else:
570572
name = '.'.join(__name__.split('.')[:-2] + ['plugins'])
571573
try:

0 commit comments

Comments
 (0)