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(
45
45
.transform_filter (alt .datum .day == 0 )
46
46
.mark_rule (color = "black" , opacity = 0.35 , size = 2 )
47
47
)
48
- return alt .layer (points , bar , data = admits_df )
48
+ return alt .layer (points , bar , data = ceil_df )
49
49
50
50
51
51
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ def build_census_df(
312
312
'date' : admits_df .date ,
313
313
** {
314
314
key : (
315
- admits_df [key ].cumsum (). iloc [: - los ]
315
+ admits_df [key ].cumsum ()
316
316
- admits_df [key ].cumsum ().shift (los ).fillna (0 )
317
317
).apply (np .ceil )
318
318
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():
245
245
admits_df = pd .read_csv ("tests/by_doubling_time/2020-03-28_projected_admits.csv" )
246
246
chart = build_admits_chart (alt = alt , admits_df = admits_df )
247
247
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
249
249
250
250
# test fx call with no params
251
251
with pytest .raises (TypeError ):
You can’t perform that action at this time.
0 commit comments