Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def deriv(x, t, beta, gamma):
|
|
24 |
return [dsdt, didt, drdt]
|
25 |
|
26 |
#plot model
|
27 |
-
def plotdata(t, s, i,r, e=None):
|
28 |
# plot the data
|
29 |
fig = plt.figure(figsize=(12,6))
|
30 |
ax = [fig.add_subplot(221, axisbelow=True),
|
@@ -82,7 +82,7 @@ def SIR(country,t_infective):
|
|
82 |
s, i, r = soln.T
|
83 |
e = None
|
84 |
|
85 |
-
plotdata(t, s, i,r)
|
86 |
|
87 |
return R0,t_infective,gamma,beta
|
88 |
|
|
|
24 |
return [dsdt, didt, drdt]
|
25 |
|
26 |
#plot model
|
27 |
+
def plotdata(t, s, i,r,R0, e=None):
|
28 |
# plot the data
|
29 |
fig = plt.figure(figsize=(12,6))
|
30 |
ax = [fig.add_subplot(221, axisbelow=True),
|
|
|
82 |
s, i, r = soln.T
|
83 |
e = None
|
84 |
|
85 |
+
plotdata(t, s, i,r,R0)
|
86 |
|
87 |
return R0,t_infective,gamma,beta
|
88 |
|