Skip to content

Commit 795224f

Browse files
committed
enh: allow node specific configuration to override master config
1 parent 8596fe8 commit 795224f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/fmri_spm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ def subjectinfo(subject_id):
223223

224224
contrastestimate = pe.Node(interface = spm.EstimateContrast(), name="contrastestimate")
225225
contrastestimate.inputs.contrasts = contrasts
226+
contrastestimate.overwrite = True
227+
contrastestimate.config = {'execution': {'remove_unnecessary_outputs': False}}
226228

227229
"""
228230
Setup the pipeline

nipype/pipeline/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def run(self, plugin=None, plugin_args=None, updatehash=False):
657657
self._set_needed_outputs(flatgraph)
658658
execgraph = generate_expanded_graph(deepcopy(flatgraph))
659659
for index, node in enumerate(execgraph.nodes()):
660-
node.config = self.config
660+
node.config = merge_dict(deepcopy(self.config), node.config)
661661
node.base_dir = self.base_dir
662662
node.index = index
663663
if isinstance(node, MapNode):

0 commit comments

Comments
 (0)