8000 Merge pull request #722 from djarecka/env · nipype/pydra@0b0c71b · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 0b0c71b

Browse files
authored
Merge pull request #722 from djarecka/env
small edits to the core
2 parents 89c1e27 + be5a870 commit 0b0c71b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pydra/engine/core.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ def _run(self, rerun=False, environment=None, **kwargs):
545545
self.hooks.post_run_task(self, result)
546546
self.audit.finalize_audit(result)
547547
save(output_dir, result=result, task=self)
548-
# self.output_ = None
549548
# removing the additional file with the chcksum
550549
(self.cache_dir / f"{self.uid}_info.json").unlink()
551550
# # function etc. shouldn't change anyway, so removing
@@ -558,15 +557,14 @@ def _run(self, rerun=False, environment=None, **kwargs):
558557
return result
559558

560559
def _collect_outputs(self, output_dir):
561-
run_output = self.output_
562560
output_klass = make_klass(self.output_spec)
563561
output = output_klass(
564562
**{f.name: attr.NOTHING for f in attr.fields(output_klass)}
565563
)
566564
other_output = output.collect_additional_outputs(
567-
self.inputs, output_dir, run_output
565+
self.inputs, output_dir, self.output_
568566
)
569-
return attr.evolve(output, **run_output, **other_output)
567+
return attr.evolve(output, **self.output_, **other_output)
570568

571569
def split(
572570
self,

0 commit comments

Comments
 (0)
0