Skip to content

Commit a17ac2d

Browse files
committed
Get backend configurable from node config
1 parent 23beb94 commit a17ac2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nipype/pipeline/plugins/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from ..utils import (nx, dfs_preorder)
2121
from ..engine import (MapNode, str2bool)
2222

23-
import nipype
2423
from nipype.utils.filemanip import savepkl, loadpkl
2524
from nipype.interfaces.utility import Function
2625

@@ -106,7 +105,7 @@ def create_pyscript(node, updatehash=False, store_exception=True):
106105
os.makedirs(batch_dir)
107106
pkl_file = os.path.join(batch_dir, 'node_%s.pklz' % suffix)
108107
savepkl(pkl_file, dict(node=node, updatehash=updatehash))
109-
mpl_backend = nipype.config.get("execution", "matplotlib_backend")
108+
mpl_backend = node.config["execution"]["matplotlib_backend"]
110109
# create python script to load and trap exception
111110
cmdstr = """import os
112111
import sys

0 commit comments

Comments
 (0)