Skip to content

Commit a952a58

Browse files
Further simplification
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent e1a3e0f commit a952a58

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nipype/pipeline/engine/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,9 +1490,7 @@ def clean_working_directory(
14901490
else:
14911491
if not str2bool(config["execution"]["keep_inputs"]):
14921492
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"]
1493+
input_files = {path for path, type in walk_outputs(inputs.trait_get()) if type == "f"}
14961494
files2remove.extend(
14971495
f for f in walk_files(cwd) if f in input_files and f not in needed_files
14981496
)

0 commit comments

Comments
 (0)