File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 8
8
--icu-rate 0.0075
9
9
--market_share 0.15
10
10
--n-days 60
11
- --susceptible 4119405
11
+ --population 4119405
12
12
--ventilated-los 10
13
13
--ventilated-rate 0.005
Original file line number Diff line number Diff line change @@ -7,15 +7,12 @@ class Regions:
7
7
"""Arbitrary number of counties."""
8
8
9
9
def __init__ (self , ** kwargs ):
10
- susceptible = 0
10
+ population = 0
11
11
for key , value in kwargs .items ():
12
12
setattr (self , key , value )
13
- susceptible += value
14
- self ._susceptible = susceptible
13
+ population += value
14
+ self .population = population
15
15
16
- @property
17
- def susceptible (self ):
18
- return self ._susceptible
19
16
20
17
21
18
class Constants :
@@ -55,4 +52,4 @@ def __init__(
55
52
self .recovery_days = recovery_days
56
53
57
54
def __repr__ (self ) -> str :
58
- return f"Constants(susceptible_default : { self .region .susceptible } , known_infected: { self .known_infected } )"
55
+ return f"Constants(population_default : { self .region .population } , known_infected: { self .known_infected } )"
You can’t perform that action at this time.
0 commit comments