Skip to content

Commit 5dab315

Browse files
committed
Patch all
1 parent 5c3d3b6 commit 5dab315

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

src/penn_chime/cli.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
from pandas import DataFrame
1010

11-
from penn_chime.parameters import Parameters, RateLos
12-
from penn_chime.models import SimSirModel as Model, change_date
11+
from .constants import CHANGE_DATE
12+
from .parameters import Parameters, RateLos
13+
from .models import SimSirModel as Model
1314

1415

1516
class FromFile(Action):
@@ -45,7 +46,7 @@ def validate(string):
4546

4647
def parse_args():
4748
"""Parse args."""
48-
parser = ArgumentParser(description=f"penn_chime: {change_date()}")
49+
parser = ArgumentParser(description=f"penn_chime: {CHANGE_DATE}")
4950
parser.add_argument("--file", type=open, action=FromFile)
5051

5152
for arg, cast, min_value, max_value, help, required in (
@@ -84,14 +85,6 @@ def parse_args():
8485
),
8586
("--icu-los", int, 0, None, "ICU Length of Stay (days)", True),
8687
("--icu-rate", float, 0.0, 1.0, "ICU Rate: 0.0 - 1.0", True),
87-
(
88-
"--known-infected",
89-
int,
90-
0,
91-
None,
92-
"Currently Known Regional Infections (>=0) (only used to compute detection rate - does not change projections)",
93-
True,
94-
),
9588
(
9689
"--market_share",
9790
float,
@@ -127,7 +120,6 @@ def main():
127120
date_first_hospitalized=a.date_first_hospitalized,
128121
doubling_time=a.doubling_time,
129122
infectious_days=a.infectious_days,
130-
known_infected=a.known_infected,
131123
market_share=a.market_share,
132124
n_days=a.n_days,
133125
relative_contact_rate=a.relative_contact_rate,

tests/by_date_first_hospitalized/settings.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
--icu-los 9
66
--icu-rate 0.0075
77
--infectious-days 14
8-
--known-infected 510
98
--market_share 0.15
109
--n-days 60
1110
--population 4119405

tests/by_doubling_time/settings.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
--icu-los 9
66
--icu-rate 0.0075
77
--infectious-days 14
8-
--known-infected 510
98
--market_share 0.15
109
--n-days 60
1110
--population 4119405

tests/test_app.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
current_hospitalized=14,
4343
date_first_hospitalized=datetime(year=2020, month=3, day=7),
4444
doubling_time=4.0,
45-
known_infected=510,
4645
n_days=60,
4746
market_share=0.15,
4847
relative_contact_rate=0.3,
@@ -54,7 +53,6 @@
5453
PARAM = Parameters(
5554
current_hospitalized=100,
5655
doubling_time=6.0,
57-
known_infected=5000,
5856
market_share=0.05,
5957
relative_contact_rate=0.15,
6058
population=500000,
@@ -67,7 +65,6 @@
6765
HALVING_PARAM = Parameters(
6866
current_hospitalized=100,
6967
doubling_time=6.0,
70-
known_infected=5000,
7168
market_share=0.05,
7269
relative_contact_rate=0.7,
7370
population=500000,

0 commit comments

Comments
 (0)