File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def build_admits_chart(
4545 .transform_filter (alt .datum .day == 0 )
4646 .mark_rule (color = "black" , opacity = 0.35 , size = 2 )
4747 )
48- return alt .layer (points , bar , data = admits_df )
48+ return alt .layer (points , bar , data = ceil_df )
4949
5050
5151
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ def build_census_df(
312312 'date' : admits_df .date ,
313313 ** {
314314 key : (
315- admits_df [key ].cumsum (). iloc [: - los ]
315+ admits_df [key ].cumsum ()
316316 - admits_df [key ].cumsum ().shift (los ).fillna (0 )
317317 ).apply (np .ceil )
318318 for key , los in lengths_of_stay .items ()
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ def test_admits_chart():
245245 admits_df = pd .read_csv ("tests/by_doubling_time/2020-03-28_projected_admits.csv" )
246246 chart = build_admits_chart (alt = alt , admits_df = admits_df )
247247 assert isinstance (chart , (alt .Chart , alt .LayerChart ))
248- assert round (chart .data .iloc [40 ].icu , 0 ) == 38
248+ assert round (chart .data .iloc [40 ].icu , 0 ) == 39
249249
250250 # test fx call with no params
251251 with pytest .raises (TypeError ):
You can’t perform that action at this time.
0 commit comments