lisphilar / covid19-sir

CovsirPhy: Python library for COVID-19 analysis with phase-dependent SIR-derived ODE models.
https://lisphilar.github.io/covid19-sir/
Apache License 2.0
109 stars 44 forks source link

Complemented dataset is not used in PolicyMeasures.estimate() #373

Closed lisphilar closed 3 years ago

lisphilar commented 3 years ago

Summary

Complemented dataset is not used in PolicyMeasures.estimate() and this causes ValueError: Records with 'Recovered > 0' in NLD from 01Jan2020 to 01Dec2020 are un-registered.

(Optional) Related classes

Codes and outputs:

import covsirphy as cs
# Dataset preparation
data_loader = cs.DataLoader("input")
jhu_data = data_loader.jhu()
population_data = data_loader.population()
oxcgrt_data = data_loader.oxcgrt()
# Scenario analysis
analyser = cs.PolicyMeasures(jhu_data, population_data, oxcgrt_data)
analyser.trend()
analyser.estimate(cs.SIRF)

This causes ValueError.

Environment

lisphilar commented 3 years ago

With #374, this was fixed in development version 2.12.0-theta.