Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
pedohorse committed Sep 7, 2024
1 parent 8340ff4 commit 0b9e469
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lifeblood_viewer/graphics_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,11 @@ def remove_invocations_log(self, invocation_ids: List[int]):
self.item_updated(redraw=False, ui=True)

def invocations_total_time(self, only_last_per_node: bool = True) -> float:
"""
calculate and get statistics on all invocations belonging to this task
:return: if only_last_per_node - returns runtime sum of only last invocations per node
otherwise returns sum of ALL invocation times, including errors and re-runs.
"""
if self.__inv_stat_total_time is None:
total_time = 0.0
max_inv_logs = {}
Expand Down

0 comments on commit 0b9e469

Please sign in to comment.