Skip to content

Commit 13eaa0d

Browse files
author
Sarah Krebs
committed
Rename runtime in overview for groups
1 parent 257648a commit 13eaa0d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

deepcave/plugins/summary/overview.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ def load_outputs(run, *_: Any) -> List[Any]: # type: ignore
163163
),
164164
)
165165

166+
if isinstance(run, Group):
167+
runtime_str = "Maximum runtime"
168+
else:
169+
runtime_str = "Total runtime"
170+
166171
# Design card for quick information here
167172
card = dbc.Card(
168173
[
@@ -181,7 +186,7 @@ def load_outputs(run, *_: Any) -> List[Any]: # type: ignore
181186
html.Div(
182187
[
183188
html.Span(
184-
f"Total runtime [s]: "
189+
f"{runtime_str} [s]: "
185190
f"{max(trial.end_time for trial in run.history)}"
186191
),
187192
],

0 commit comments

Comments
 (0)