Skip to content

Commit 83dbc41

Browse files
committed
define daily_count parameter and incorporate into daily count checkbox
1 parent 9223eab commit 83dbc41

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/penn_chime/presentation.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,12 @@ def show_additional_projections(
389389

390390

391391
def draw_projected_admissions_table(
392-
st, projection_admits: pd.DataFrame, as_date: bool = False
392+
st, projection_admits: pd.DataFrame, as_date: bool = False, daily_count: bool = False,
393393
):
394-
admits_table = projection_admits[np.mod(projection_admits.index, 7) == 0].copy()
394+
if daily_count == True:
395+
admits_table = projection_admits[np.mod(projection_admits.index, 1) == 0].copy()
396+
else:
397+
admits_table = projection_admits[np.mod(projection_admits.index, 7) == 0].copy()
395398
admits_table["day"] = admits_table.index
396399
admits_table.index = range(admits_table.shape[0])
397400
admits_table = admits_table.fillna(0).astype(int)

0 commit comments

Comments
 (0)