Skip to content

Commit

Permalink
Merge pull request #525 from Proteobench/dummy
Browse files Browse the repository at this point in the history
Update quant.py
  • Loading branch information
RobbinBouwmeester authored Jan 10, 2025
2 parents 9a4379e + 8b6a5c6 commit 8188166
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webinterface/pages/base_pages/quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ def display_existing_results(self) -> None:
help="Toggle between median and mean absolute difference metrics.",
)

if len(data_points_filtered) == 0:
st.error(f"No datapoints available for plotting", icon="🚨")

try:
fig_metric = PlotDataPoint.plot_metric(
data_points_filtered,
Expand Down Expand Up @@ -549,6 +552,9 @@ def handle_submitted_table_edits(self) -> None:
self.variables_quant.all_datapoints_submitted
]

if len(st.session_state[self.variables_quant.all_datapoints]) == 0:
st.error(f"No datapoints available for plotting", icon="🚨")

try:
fig_metric = PlotDataPoint.plot_metric(
st.session_state[self.variables_quant.all_datapoints],
Expand Down

0 comments on commit 8188166

Please sign in to comment.