Skip to content

Commit

Permalink
Fixed post run and end execution
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE committed Sep 9, 2024
1 parent a132327 commit 21301bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/dynapyt/post_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
from .utils.runtimeUtils import gather_coverage, gather_output


def post_run(coverage_dir: str, output_dir: str):
gather_output(Path(output_dir))
def post_run(coverage_dir: str = "", output_dir: str = ""):
if len(output_dir) > 0:
gather_output(Path(output_dir))
if len(coverage_dir) > 0:
gather_coverage(Path(coverage_dir))

Expand Down
2 changes: 1 addition & 1 deletion src/dynapyt/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self):
def __del__(self):
self.end_execution()

def end_execution(self):
def end_execution(self, *args):
if self.end_execution_called:
return
self.end_execution_called = True
Expand Down

0 comments on commit 21301bf

Please sign in to comment.