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 17
17
18
18
FLOAT_INPUT_MIN = 0.0001
19
19
FLOAT_INPUT_STEP = 0.1
20
+
21
+ PREFIT_ADDITIONAL_DAYS = 300
Original file line number Diff line number Diff line change 14
14
import numpy as np
15
15
import pandas as pd
16
16
17
+ from ..constants import PREFIT_ADDITIONAL_DAYS
17
18
from .parameters import Parameters
18
19
19
20
@@ -68,7 +69,8 @@ def __init__(self, p: Parameters):
68
69
69
70
if p .mitigation_date is None :
70
71
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 )])
72
74
self .i_day = i_day = int (get_argmin_ds (raw ["census_hospitalized" ], p .current_hospitalized ))
73
75
74
76
self .raw = self .run_projection (p , self .gen_policy (p ))
You can’t perform that action at this time.
0 commit comments