Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Update data/data_params.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dsevero authored Mar 22, 2020
1 parent c5af483 commit 9ad9275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/data_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def estimate_E0(value: 'query uf/city value',
if granularity == 'Estado':
E0 = (load_uf_covid_data()
.query('uf == @value')
.assign(exposed=lambda df: df.new_cases
.assign(exposed=lambda df: df.cases
.shift(-avg_incubation_time)
.fillna(method='ffill')
.fillna(0))
Expand Down Expand Up @@ -188,4 +188,4 @@ def query_params(value: 'query uf/city value',
E0 = estimate_E0(value, date, granularity) # temporary workaround
I0 = query_I0(value, date, granularity)
R0 = estimate_R0(value, date, granularity)
return N, E0, I0, R0
return N, E0, I0, R0

0 comments on commit 9ad9275

Please sign in to comment.