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
110 stars 44 forks source link

Stdout of Scenario.estimate() is not formated when 10th phase is included #255

Closed lisphilar closed 4 years ago

lisphilar commented 4 years ago

Summary

Stdout of Scenario.estimate() is not formated when we have 10th phase in the scenario.

(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()
# Scenario analysis
snl = cs.Scenario(jhu_data, population_data, "Japan")
snl.trend()
snl.estimate(cs.SIRF)

This code returns

<SIR-F model: parameter estimation>
Running optimization with 8 CPUs...
        10th phase (08Oct2020 - 19Oct2020): finished  246 trials in 0 min 10 sec
        6th phase (30Aug2020 - 31Aug2020): finished  110 trials in 0 min  5 sec
        8th phase (11Sep2020 - 24Sep2020): finished   65 trials in 0 min  5 sec

We need

<SIR-F model: parameter estimation>
Running optimization with 8 CPUs...
        10th phase (08Oct2020 - 19Oct2020): finished  246 trials in 0 min 10 sec
         6th phase (30Aug2020 - 31Aug2020): finished  110 trials in 0 min  5 sec
         8th phase (11Sep2020 - 24Sep2020): finished   65 trials in 0 min  5 sec

Environment

lisphilar commented 4 years ago

This will be fixed in version 2.9.0