Skip to content

Commit 5f81d8e

Browse files
author
Nick Canzoneri
committed
Fix display of tables to show date
1 parent fc3ff99 commit 5f81d8e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
use_container_width=True,
5252
)
5353
if st.checkbox("Show Projected Admissions in tabular form"):
54-
draw_projected_admissions_table(st, admissions_df)
54+
draw_projected_admissions_table(st, admissions_df, as_date=p.as_date)
5555
st.subheader("Admitted Patients (Census)")
5656
st.markdown(
5757
"Projected **census** of COVID-19 patients, accounting for arrivals and discharges at Penn hospitals"
@@ -61,7 +61,7 @@
6161
use_container_width=True,
6262
)
6363
if st.checkbox("Show Projected Census in tabular form"):
64-
draw_census_table(st, census_df, parameters=p)
64+
draw_census_table(st, census_df, as_date=p.as_date)
6565
st.markdown(
6666
"""**Click the checkbox below to view additional data generated by this simulation**"""
6767
)

src/penn_chime/presentation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ def draw_census_table(st, census_df: pd.DataFrame, as_date: bool = False):
421421
return None
422422

423423

424-
def draw_raw_sir_simulation_table(st, parameters, as_date: bool = False):
424+
def draw_raw_sir_simulation_table(st, parameters):
425+
as_date = parameters.as_date
425426
days = np.arange(0, parameters.n_days + 1)
426427
data_list = [
427428
days,

0 commit comments

Comments
 (0)