InstituteforDiseaseModeling / covasim

COVID-19 Agent-based Simulator (Covasim): a model for exploring coronavirus dynamics and interventions
https://covasim.org
MIT License
250 stars 223 forks source link

Investigate potential for duplicate infections of same individual on a single step #267

Closed athompson-IDM closed 4 years ago

athompson-IDM commented 4 years ago

In this section, if p1 and p2 are not disjoint, it could have the same individual conceivably getting infected twice on a single step.

1) Investigate: can it happen that p1 and p2 are not disjoint? 2) If so, how much does this matter, what are the implications in terms of correctness of simulating the duplicate infection on that step?

https://github.com/InstituteforDiseaseModeling/covasim/blob/9632dd27e892e55557e8f4a702e60a8642c3378b/covasim/sim.py#L503-505

cliffckerr commented 4 years ago

Closing this because it could happen, but doesn't affect results. For example, one person in a household might get infected by two different people in the same household on the same day. But an infection is an infection with covid, so it doesn't matter.