We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 135d900 commit 4e1d601Copy full SHA for 4e1d601
nipype/interfaces/mixins/fixheader.py
@@ -125,7 +125,9 @@ def _post_run_hook(self, runtime):
125
126
inputs = self.inputs.get_traitsfree()
127
outputs = self.aggregate_outputs(runtime=runtime).get_traitsfree()
128
- for out, inp in self._copy_header_map.items():
+ defined_outputs = set(outputs.keys()).intersection(self._copy_header_map.keys())
129
+ for out in defined_outputs:
130
+ inp = self._copy_header_map[out]
131
keep_dtype = True
132
if isinstance(inp, tuple):
133
inp, keep_dtype = inp
0 commit comments