-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from HopkinsIDD/fix-no-seir-npi-for-inference
Fix: inference.py fails when no seir modifier config.
- Loading branch information
Showing
4 changed files
with
89 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
flepimop/gempyor_pkg/tests/inference/data/config_inference_without_seir_modifiers.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: minimal_test | ||
setup_name: minimal_test_setup | ||
start_date: 2020-01-31 | ||
end_date: 2020-05-31 | ||
nslots: 5 | ||
|
||
subpop_setup: | ||
geodata: data/geodata.csv | ||
mobility: data/mobility.csv | ||
|
||
initial_conditions: | ||
method: Default | ||
|
||
compartments: | ||
infection_stage: ["S", "E", "I1", "I2", "I3", "R"] | ||
vaccination_stage: ["unvaccinated"] | ||
|
||
seir: | ||
integration: | ||
method: legacy | ||
dt: 1/6 | ||
parameters: | ||
alpha: | ||
value: .9 | ||
sigma: | ||
value: | ||
distribution: fixed | ||
value: 1 / 5.2 | ||
gamma: | ||
value: | ||
distribution: uniform | ||
low: 1 / 6 | ||
high: 1 / 2.6 | ||
R0s: | ||
value: | ||
distribution: uniform | ||
low: 2 | ||
high: 3 | ||
transitions: | ||
- source: ["S", "unvaccinated"] | ||
destination: ["E", "unvaccinated"] | ||
rate: ["R0s * gamma", 1] | ||
proportional_to: [ | ||
["S", "unvaccinated"], | ||
[[["I1", "I2", "I3"]], "unvaccinated"], | ||
] | ||
proportion_exponent: [["1", "1"], ["alpha", "1"]] | ||
- source: [["E"], ["unvaccinated"]] | ||
destination: [["I1"], ["unvaccinated"]] | ||
rate: ["sigma", 1] | ||
proportional_to: [[["E"], ["unvaccinated"]]] | ||
proportion_exponent: [["1", "1"]] | ||
- source: [["I1"], ["unvaccinated"]] | ||
destination: [["I2"], ["unvaccinated"]] | ||
rate: ["3 * gamma", 1] | ||
proportional_to: [[["I1"], ["unvaccinated"]]] | ||
proportion_exponent: [["1", "1"]] | ||
- source: [["I2"], ["unvaccinated"]] | ||
destination: [["I3"], ["unvaccinated"]] | ||
rate: ["3 * gamma", 1] | ||
proportional_to: [[["I2"], ["unvaccinated"]]] | ||
proportion_exponent: [["1", "1"]] | ||
- source: [["I3"], ["unvaccinated"]] | ||
destination: [["R"], ["unvaccinated"]] | ||
rate: ["3 * gamma", 1] | ||
proportional_to: [[["I3"], ["unvaccinated"]]] | ||
proportion_exponent: [["1", "1"]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters