Skip to content

Commit fdaee6e

Browse files
committed
Add support for skipping plots in interactive mode
1 parent 11cd6d3 commit fdaee6e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/hpc_multibench/tui/interactive_ui.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,12 @@ def get_plot_model(
421421
*self.current_test_bench.bench_model.analysis.bar_charts,
422422
*self.current_test_bench.bench_model.analysis.roofline_plots,
423423
]
424-
return all_plot_models[self.current_plot_index % len(all_plot_models)]
424+
enabled_plot_models = [
425+
plot_model for plot_model in all_plot_models if plot_model.enabled
426+
]
427+
if len(enabled_plot_models) == 0:
428+
return None
429+
return enabled_plot_models[self.current_plot_index % len(enabled_plot_models)]
425430

426431
def action_reload_test_plan(self) -> None:
427432
"""Reload the test plan for the user interface."""

0 commit comments

Comments
 (0)