Skip to content

Commit

Permalink
Merge branch 'waning-immunity' of github.com:SABS-R3-Epidemiology/epi…
Browse files Browse the repository at this point in the history
…abm into waning-immunity
  • Loading branch information
tomcodewizard committed Feb 21, 2024
2 parents 6ced00b + 19b980e commit 312999f
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions python_examples/gibraltar_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Contained within the gibraltar_example/ directory, these scripts run simulations in which intervention is active or inactive in Gibraltar. Output graphs are contained within the gibraltar_example/simulation_outputs/ directory. Both simulations are run using the same input file, considering the actual population set-up in Gibraltar.

## Without Intervention
The resulting infection curve shows the progression of the disease when the intervention is absent. The infection peak occurs around Day 25 with roughly 17k infected individuals. After the simulation there are roughly equal numbers of susceptible and infected individuals.
The resulting infection curve shows the progression of the disease when the intervention is absent. The infection peak occurs around Day 25 with roughly 15k infected individuals. Nearly all of the population is recovered in 90 days, and a small proportion of the population are susceptible.

![without intervention.pt](./simulation_outputs/without_intervention/simulation_flow_SIR_plot.png)

## With Intervention
The intervention conducted in our simulation is in line with the real instructions during the pandemic (https://www.gibraltar.gov.gi/press/covid-19-press-releases?year=2020&np=6). All interventions (i.e. case isolation, place closure, household quarantine, social distancing) start from the first day of the simulation, and most of them last for the entire simulation, except place closure, which ends at Day 74. 90% of the symptomatic individuals are self isolated, 75% of the households are compliant with household quarantine, and all forms of schools are closed during this time. These interventions affect the house, place and spatial effectiveness to different extents, and the exact values are derived from CovidSim.

The infection peak occurs around 25 days later than without the intervention, and the number of infected individuals is below 12.5k. As a result, there are far more susceptible individuals in the intervention case, which still has almost 17.5k after the simulation.
The infection peak occurs around 15 days later than without the intervention, and the number of infected individuals is below 7.5k. As a result, there are far more susceptible individuals in the intervention case, which still has almost 10k after the simulation.

![with intervention.pt](./simulation_outputs/with_intervention/simulation_flow_SIR_plot.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
dates,0-10,10-20,20-30,30-40,40-50,50-60,60-70,70-80,80-90
03-18,0.21428571428571427,4.367393206840385,13.336966034201925,22.490397403210718,21.949396004420606,30.638379720916625,19.138379720916625,10.46957282736154,12.449396004420608
03-25,2.571428571428571,14.05702467624465,38.0627971069809,64.89016044498939,90.8507790248948,94.42733177713063,73.53846663914943,37.277083318287374,47.27675735434608
04-01,11.582002797580222,36.4253895124474,91.18326733894376,154.000056053184,251.41908173338336,226.28738842891494,181.9699518623623,123.83060001506256,112.07466335980376
04-08,25.220058642042723,84.67684695649096,174.98214716065513,361.92647414281515,561.7705643655621,547.7932707791279,395.04305288712095,295.73392331213694,268.50296298893903
04-15,58.88983716496018,166.4241508550481,315.25702019218085,694.2459666708854,1099.9917605102237,1053.6089887967125,751.7542640202514,563.0008071648949,545.0715811245288
04-22,94.62079361139622,230.54300150593207,508.88617804117956,1034.030174277122,1647.8119575402154,1570.8826737567947,1138.744444384956,848.686337961064,921.4538013862398
04-29,106.34532957597531,276.9988181910179,589.9678566640932,1133.4315004491789,1893.6025254995548,1803.8957765795296,1363.9690320289365,970.2523129085987,1131.3090457057688
05-06,103.26397492891995,282.9670949161381,587.0732179025259,1150.1752397186578,1916.5537494753992,1761.3188989567982,1307.1054179051728,942.1658352735859,1141.938412442133
05-13,99.97793676675153,283.7572865243887,562.7134831391127,1094.9420170316803,1737.3323448409883,1618.6669810267495,1190.945243569511,869.7699005091814,979.2311518319682
05-20,92.68132437843147,240.77104266666439,525.5946318918038,979.4374835565557,1618.3854268471955,1423.8402156509267,1026.1745285566583,727.2154176502721,806.7625028313296
05-27,89.67587532712858,227.0007039054964,467.86556225329196,945.3026096282172,1527.8517613076324,1304.153444010467,953.9733548102895,655.2916498063909,680.7640707330072
06-03,94.12014615670043,214.14836264496063,494.2662981172828,964.489384648418,1491.2726757838388,1334.536271081333,892.733446502097,657.316952798222,665.5088448421312
06-10,91.43563986214492,218.653488217426,499.690716795601,964.5191643663607,1425.7803366129656,1370.9379185453363,877.876630006512,662.5722419987851,661.7433092680367
03-18,1.0205006993950558,5.010250349697528,12.882768731386676,23.990397403210718,28.1281293712191,31.64350489576539,19.153755245462918,11.959646354118135,11.990073526756595
03-25,7.536200100395471,15.913843656933384,30.051899501395884,65.12591908445744,106.93790689791965,98.88217762808733,70.21142697878676,41.48624336070357,41.07817223391059
04-01,19.470220580269785,43.4606179834805,86.50356264099536,171.77266234714747,287.50238013618423,264.5769893314829,179.10833148387476,107.47858372442657,140.8315700539585
04-08,48.00194315932059,99.44173656695192,189.47189671155346,388.4604642546614,659.0576287192147,596.7097049506735,383.3874147104958,270.0398160112586,271.6080600820552
04-15,66.35428481747296,156.41325275244233,313.72977384222077,617.2376021350705,1075.3457186679263,942.7947323570093,686.1267873721481,489.3909137435917,526.8076628452178
04-22,59.72647932270798,164.02185305362875,359.51775566073053,709.128410233564,1185.7531402525365,1091.0788798344915,882.0476885281984,593.8460777055617,682.8041491997118
04-29,53.34818801326182,136.77487303152571,329.76629781907036,661.1767475909853,1056.230316066566,998.145393311287,831.1462509456024,615.7172955118227,646.2288332161963
05-06,43.08265055048847,106.14609590739838,246.97319062690354,474.96299583336923,818.21677010391,862.6023875309764,640.5078194458803,486.0202776966399,492.3752037063471
05-13,30.250809691135306,65.75723037180056,150.18197044146916,340.151598228569,533.0177484042275,569.0529689229285,459.01898427831054,344.5679712773189,362.7322925977931
05-20,19.296288511865935,32.28123686377376,90.51764146687535,189.45905326273578,330.4654680785561,311.8485611834177,243.52022730949247,214.33059434902594,259.30048657965483
05-27,8.729661238832005,12.33184085935316,37.05189950139589,98.05351719379593,195.56473509728565,176.48273200149296,116.03301649440088,110.74697535010793,150.3491508950589
06-03,4.428571428571428,9.219734765588601,17.035876223941347,43.490720484431634,96.95581290772812,80.0525452662211,63.067273833092365,42.43434276586202,83.18482480318548
06-10,1.857142857142857,3.1479823177059068,7.938821778268956,21.551251649083486,53.414165247092036,32.852664441160826,22.51089770498917,20.005124677828007,43.9756673452772
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
dates,0-10,10-20,20-30,30-40,40-50,50-60,60-70,70-80,80-90
03-18,0.505125174848764,7.010250349697527,16.56662727303393,29.138379621512474,29.562149851093412,36.276435565379124,21.61787902152157,12.826715684504396,17.97502187866443
03-25,16.08745184888311,43.25113356758943,84.77902657701212,184.1656813288275,275.97578153913236,241.61831570017276,183.17145405777623,137.5967867218064,149.5058263964331
04-01,78.74859940437365,181.42479860795638,468.06523528443216,893.1394228282375,1295.8231277404698,1256.9323126836857,971.8918467326275,726.8029236636604,795.722590536094
04-08,162.77616853734222,371.7797880267548,926.4084678728636,1752.8044122966019,2614.871641226906,2609.83699063842,1990.9798874156454,1524.8890230760367,1777.0322315201365
04-15,152.56571249208878,382.7509233879697,913.8372487852257,1746.5261825293219,2692.3615366536956,2666.853427416228,2211.5105169149756,1630.7970353663295,2045.0631660091321
04-22,139.7280987049786,326.7223826256388,782.882346881085,1512.074734738358,2294.630626203493,2224.9182765908336,1837.297307463978,1403.0636990819216,1627.4807466125392
04-29,130.99811358969245,304.7009102968814,700.7500077123872,1332.2312956482604,2095.885157532863,1983.087949071036,1463.6668645465986,1097.9467523364758,1181.4198691168522
05-06,126.41611079211225,296.81781768904057,676.5049718436462,1236.6210778534823,1914.6100226423162,1786.5622734060698,1302.9160646964745,890.4031662879183,999.8804438702842
05-13,120.23737742531375,296.30244216449427,676.7964590571175,1234.081372258721,1930.3192432111032,1741.3553862642732,1220.8978339155744,826.9313875475777,936.5092285491271
05-20,115.20630249976705,273.73711039727687,680.6561360774762,1224.0153927385954,1898.6087875634664,1714.2205119383182,1188.3613110321705,839.669680648474,873.1712957563661
05-27,122.12559520800332,290.11923137575525,642.3643249875507,1172.0634053249253,1829.193267477037,1605.9645209197458,1153.4208706668642,777.1174564753908,812.5950676758176
06-03,114.93661149150729,284.58238352245155,645.8163120036044,1175.366438692123,1826.1862563889013,1653.3700569886857,1148.7267617755192,800.8163669633427,862.0486143430043
06-10,105.43116244020442,285.6278623431822,644.5655023124691,1233.787350882034,1838.0165349132094,1631.7108528907283,1156.494890548138,783.6722148116899,835.4269084357667
03-18,1.0205006993950556,6.826715684504396,19.541325275244233,37.363239661353994,35.54677432654712,33.65888042031168,23.725183816891487,16.015699401000415,16.72998511528613
03-25,17.80718661447171,42.114049352489296,115.47955614902216,201.51419361616007,306.32942009475937,254.92900741139354,210.12084916755947,146.8178163967866,154.19001000738427
04-01,86.48338581805442,191.20668322463837,462.6814943272582,880.2742392123296,1309.2481928794423,1265.2286016925723,969.9110510315687,706.2613333484622,755.4945509658281
04-08,140.45393027477834,335.9213496637954,827.7168354016801,1593.3744311683588,2342.7229549042995,2340.3381783122472,1916.0368524601568,1405.0023690200503,1679.2644248346971
04-15,106.50868781584411,256.8098344745219,645.1520357024534,1211.8217133688029,1902.2462874829419,1855.5377127783843,1763.2211253967944,1380.7424220112841,1683.25268517336
04-22,52.07784925209383,123.16147143194466,323.8181380863494,600.3204596842459,963.875320981731,952.0693685514717,960.5497798497056,835.6631189348328,1154.4264018759973
04-29,21.969896703815664,38.965095405421025,133.89463697229255,254.83539992179908,387.3885911516537,406.4183676886635,431.7889366485706,391.2219876859739,638.5960944358385
05-06,6.790839460563049,9.295964635411814,42.255610890125794,86.3834144962119,139.8987875356544,143.68450132434796,171.08199444763153,143.485590140567,280.20466114917906
05-13,0.9285714285714285,3.3571428571428568,14.969572827361539,30.37764226428395,39.729659548961436,51.2757853273671,69.93881770269877,40.94907033869176,108.3725093359114
05-20,0.5,1.357142857142857,2.8622680319916207,12.142856447028086,13.214285018456657,16.214284521435903,6.285714086905983,6.428571329167277,21.571426782153853
05-27,0.21428571428571427,0.5,0.21428571428571427,2.5714284720244205,5.285713987501833,3.5714283726202694,0.42857142857142855,0.14285714285714285,2.5714284720244205
06-03,0.0,0.2857142857142857,0.0,0.3571428571428571,0.8571428571428571,0.5,0.0,0.0,0.5714285714285714
06-10,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.07142857142857142
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 312999f

Please sign in to comment.