From fc2c4871f243e452e90cbafe92c9b7867671dacc Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Mon, 8 Oct 2018 15:30:04 -0400 Subject: [PATCH] [FIX] Keep profile files with ``remove_unnecessary_outputs = true`` Close #2717 --- nipype/pipeline/engine/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nipype/pipeline/engine/utils.py b/nipype/pipeline/engine/utils.py index 4a87e28352..672e482959 100644 --- a/nipype/pipeline/engine/utils.py +++ b/nipype/pipeline/engine/utils.py @@ -1473,7 +1473,8 @@ def clean_working_directory(outputs, needed_files += [path for path, type in input_files if type == 'f'] for extra in [ '_0x*.json', 'provenance.*', 'pyscript*.m', 'pyjobs*.mat', - 'command.txt', 'result*.pklz', '_inputs.pklz', '_node.pklz' + 'command.txt', 'result*.pklz', '_inputs.pklz', '_node.pklz', + '.proc-*', ]: needed_files.extend(glob(os.path.join(cwd, extra))) if files2keep: