Skip to content

Commit

Permalink
Merge pull request #722 from djarecka/env
Browse files Browse the repository at this point in the history
small edits to the core
  • Loading branch information
djarecka authored Nov 15, 2023
2 parents 89c1e27 + be5a870 commit 0b0c71b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pydra/engine/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ def _run(self, rerun=False, environment=None, **kwargs):
self.hooks.post_run_task(self, result)
self.audit.finalize_audit(result)
save(output_dir, result=result, task=self)
# self.output_ = None
# removing the additional file with the chcksum
(self.cache_dir / f"{self.uid}_info.json").unlink()
# # function etc. shouldn't change anyway, so removing
Expand All @@ -558,15 +557,14 @@ def _run(self, rerun=False, environment=None, **kwargs):
return result

def _collect_outputs(self, output_dir):
run_output = self.output_
output_klass = make_klass(self.output_spec)
output = output_klass(
**{f.name: attr.NOTHING for f in attr.fields(output_klass)}
)
other_output = output.collect_additional_outputs(
self.inputs, output_dir, run_output
self.inputs, output_dir, self.output_
)
return attr.evolve(output, **run_output, **other_output)
return attr.evolve(output, **self.output_, **other_output)

def split(
self,
Expand Down

0 comments on commit 0b0c71b

Please sign in to comment.