Priesemann-Group / covid19_inference

Bayesian python toolbox for inference and forecast of the spread of the Coronavirus
GNU General Public License v3.0
73 stars 70 forks source link

AttributeError: 'RKI' object has no attribute 'get_new_confirmed' & 'get_confirmed' #45

Closed paulogonc closed 4 years ago

paulogonc commented 4 years ago

Hi,

there is a small bug in the jupyter notebook "example_one_bundesland.ipynb" at the create model section. I guess the call needs to be changed as follows:


total_cases = rki.get_total(value="confirmed", bundesland="Sachsen",data_begin=bd, data_end=ed)
new_cases_obs = rki.get_new(value="confirmed", bundesland="Sachsen",data_begin=bd, data_end=ed)```

Best regards
Paulo
semohr commented 4 years ago

The example_one_bundesland.ipynb wasn't updated for some time but this problem will be fixed in the next main version. Was already fixed on commit https://github.com/Priesemann-Group/covid19_inference/commit/e285ca5636e6b02a0ebdbc6177f9723944c7e2fa, the branch just has to be merged.

Nevertheless, thanks a lot for your input and help.

semohr commented 4 years ago

Merged to master b39a992ec974c1952aaab8175660c3031e4e8824