Skip to content

Commit fb8d18d

Browse files
committed
small changes in template_update
1 parent 73ac982 commit fb8d18d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pydra/engine/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def _run(self, rerun=False, **kwargs):
381381
orig_inputs = attr.asdict(self.inputs)
382382
map_copyfiles = copyfile_input(self.inputs, self.output_dir)
383383
modified_inputs = template_update(self.inputs, map_copyfiles)
384-
if modified_inputs is not None:
384+
if modified_inputs:
385385
self.inputs = attr.evolve(self.inputs, **modified_inputs)
386386
self.audit.start_audit(odir)
387387
result = Result(output=None, runtime=None, errored=False)

pydra/engine/helpers_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def template_update(inputs, map_copyfiles=None):
505505
f"output_file_template metadata for "
506506
"{fld.name} should be a string"
507507
)
508-
return {k: v for k, v in dict_.items() if getattr(inputs, k) != v}
508+
return {k: v for k, v in dict_.items() if getattr(inputs, k) is not v}
509509

510510

511511
def is_local_file(f):

0 commit comments

Comments
 (0)