Commit 8c46c9cb authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

BUG: include filenames of all expected filenames, not just the existing ones

parent 1de75631
......@@ -848,11 +848,11 @@ class ScriptRun(object):
kwargs = {var: self.iter_vars[var] if var in self.script.iter_vars else self.tree.get_variable(var)
for var in self.script.in_vars}
for is_output, target_dict in enumerate((self.requires, self.provides)):
get_fn = np.vectorize(lambda t: t.filename if (is_output == 1) or t.exists else None, otypes=['object'])
get_fn = np.vectorize(lambda t: t.filename if (is_output == 1) or t.expected else None, otypes=['object'])
for name, targets in target_dict.items():
part_name = name.split('/')[-1]
if isinstance(targets, Target):
kwargs[part_name] = targets.filename if (is_output == 1) or targets.exists else None
kwargs[part_name] = targets.filename if (is_output == 1) or targets.expected else None
else:
kwargs[part_name] = get_fn(targets)
return kwargs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment