def test_retrospective_before_estimate(self, jhu_data):
     scenario = Scenario(country="Japan")
     scenario.register(jhu_data)
     scenario.retrospective(
         beginning_date="01Jan2021", model=SIRF,
         control="Control", target="Retro", timeout=1, timeout_iteration=1)
     scenario.simulate(name="Control")
     scenario.simulate(name="Retro")
 def test_retrospective(self, jhu_data, population_data, country):
     # Setting
     snl = Scenario(jhu_data, population_data, country)
     snl.first_date = "01Apr2020"
     snl.last_date = "19Oct2020"
     snl.trend(show_figure=False)
     # Retrospective analysis
     snl.retrospective(
         "01Sep2020", model=SIR, control="Main", target="Retrospective")
示例#3
0
 def test_retrospective(self, jhu_data, population_data, country):
     # Setting
     snl = Scenario(jhu_data, population_data, country)
     snl.first_date = "01Apr2020"
     snl.last_date = "01Jun2020"
     snl.trend(show_figure=False)
     # Retrospective analysis
     snl.retrospective(
         "01May2020", model=SIRF, control="Main", target="Retrospective",
         timeout=1, timeout_iteration=1)