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 e1a3e0f commit a952a58Copy full SHA for a952a58
nipype/pipeline/engine/utils.py
@@ -1490,9 +1490,7 @@ def clean_working_directory(
1490
else:
1491
if not str2bool(config["execution"]["keep_inputs"]):
1492
input_files = []
1493
- inputdict = inputs.trait_get()
1494
- input_files.extend(walk_outputs(inputdict))
1495
- input_files = [path for path, type in input_files if type == "f"]
+ input_files = {path for path, type in walk_outputs(inputs.trait_get()) if type == "f"}
1496
files2remove.extend(
1497
f for f in walk_files(cwd) if f in input_files and f not in needed_files
1498
)
0 commit comments