File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1717
1818FLOAT_INPUT_MIN = 0.0001
1919FLOAT_INPUT_STEP = 0.1
20+
21+ PREFIT_ADDITIONAL_DAYS = 300
Original file line number Diff line number Diff line change 1414import numpy as np
1515import pandas as pd
1616
17+ from ..constants import PREFIT_ADDITIONAL_DAYS
1718from .parameters import Parameters
1819
1920
@@ -68,7 +69,8 @@ def __init__(self, p: Parameters):
6869
6970 if p .mitigation_date is None :
7071 self .i_day = 0 # seed to the full length
71- raw = self .run_projection (p , [(self .beta , p .n_days )])
72+ raw = self .run_projection (p , [
73+ (self .beta , p .n_days + PREFIT_ADDITIONAL_DAYS )])
7274 self .i_day = i_day = int (get_argmin_ds (raw ["census_hospitalized" ], p .current_hospitalized ))
7375
7476 self .raw = self .run_projection (p , self .gen_policy (p ))
You can’t perform that action at this time.
0 commit comments