Skip to content

Commit 85c33f7

Browse files
committed
Update defaults.py and settings.cfg
1 parent 3c83449 commit 85c33f7

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

settings.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
--icu-rate 0.0075
99
--market_share 0.15
1010
--n-days 60
11-
--susceptible 4119405
11+
--population 4119405
1212
--ventilated-los 10
1313
--ventilated-rate 0.005

src/penn_chime/defaults.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@ class Regions:
77
"""Arbitrary number of counties."""
88

99
def __init__(self, **kwargs):
10-
susceptible = 0
10+
population = 0
1111
for key, value in kwargs.items():
1212
setattr(self, key, value)
13-
susceptible += value
14-
self._susceptible = susceptible
13+
population += value
14+
self.population = population
1515

16-
@property
17-
def susceptible(self):
18-
return self._susceptible
1916

2017

2118
class Constants:
@@ -55,4 +52,4 @@ def __init__(
5552
self.recovery_days = recovery_days
5653

5754
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})"

0 commit comments

Comments
 (0)