File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,10 @@ def __init__(self, p: Parameters):
62
62
self .recovered = p .recovered
63
63
64
64
if p .date_first_hospitalized is None and p .doubling_time is not None :
65
+ # Back-projecting to when the first hospitalized case would have
65
66
logger .info ('Using doubling_time: %s' , p .doubling_time )
66
67
self .i_day = 0
67
- self .beta = (
68
- (intrinsic_growth_rate + gamma )
69
- / susceptible
70
- )
68
+ self .beta = get_beta (intrinsic_growth_rate , gamma , self .susceptible , 0.0 )
71
69
72
70
self .i_day = 0 # seed to the full length
73
71
self .beta_t = self .beta
@@ -86,6 +84,7 @@ def __init__(self, p: Parameters):
86
84
self .i_day )
87
85
88
86
elif p .date_first_hospitalized is not None and p .doubling_time is None :
87
+ # Fitting spread parameter to observed hospital census (dates of 1 patient and today)
89
88
self .i_day = (p .current_date - p .date_first_hospitalized ).days
90
89
logger .info (
91
90
'Using date_first_hospitalized: %s; current_date: %s; i_day: %s' ,
You can’t perform that action at this time.
0 commit comments