Skip to content

Commit

Permalink
fix(status): int format
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrckd committed Dec 21, 2024
1 parent 669caea commit e5fdd2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/demo_streamlit/views/experiments_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ def display_experiment_set_overview(expset, experiments_df):
status, counts = _get_expset_status(expset)
st.write(f"## Overview of experiment set: {expset['name']}")
st.write(f"experiment_set id: {expset['id']}")
finished_ratio = counts["total_observation_successes"] // counts["observation_length"] * 100
finished_ratio = int(counts["total_observation_successes"] / counts["observation_length"] * 100)
st.markdown(f"Finished: {finished_ratio}%", unsafe_allow_html=True)
failure_ratio = (
failure_ratio = int(
(counts["total_observation_tries"] - counts["total_observation_successes"])
// counts["observation_length"]
/ counts["observation_length"]
* 100
)
if failure_ratio > 0:
Expand Down

0 comments on commit e5fdd2d

Please sign in to comment.