Skip to content

Commit 689d064

Browse files
committed
assign output to _results
1 parent 9afb3f5 commit 689d064

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/algorithms/confounds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def _run_interface(self, runtime):
613613
if save_pre_filter:
614614
self._results['pre_filter_file'] = save_pre_filter
615615
if save_pre_filter is True:
616-
pre_filter_file = os.path.abspath('pre_filter.tsv')
616+
self._results['pre_filter_file'] = os.path.abspath('pre_filter.tsv')
617617
if self.inputs.pre_filter:
618618
ftype = {
619619
'polynomial': 'Legendre',
@@ -654,7 +654,7 @@ def _run_interface(self, runtime):
654654
components_names[retained] = components_header
655655
components_names[not_retained] = ([
656656
'dropped{}'.format(i) for i in range(len(not_retained[0]))])
657-
with open(metadata_file, 'w') as f:
657+
with open(self._results['metadata_file'], 'w') as f:
658658
f.write('{}\t{}\t{}\t{}\t{}\n'.format('component',
659659
*list(metadata.keys())))
660660
for i in zip(components_names, *metadata.values()):

0 commit comments

Comments
 (0)