daveselinger / covid_rapid_test_simulation2

An update to our original rapid test simulation.
MIT License
0 stars 1 forks source link

Moved simClock increment; implemented random.choices(). Refactored vaccine protection #19

Closed tedkyi closed 2 years ago

tedkyi commented 2 years ago

Quick commit that makes two small changes Roger and I discussed:

tedkyi commented 2 years ago

Second commit has the new vaccination code:

tedkyi commented 2 years ago

Third commit has reinfections that work similar to vaccinations, as a multiplicative float:

rstager commented 2 years ago

Ted, I think simulation.py:181 (recovered resistance) is redundant with line 128. I will merge and we can clean up on main branch.

tedkyi commented 2 years ago

@rstager, thanks for reviewing. The way the VariantParameters class works is that it defines default values. Initially all variants have the same values. The stuff near line 128 is where SimulationParameters.__init__() overrides these defaults and sets different values for certain parameters for certain variants. So yes, it does set the same parameters, but it's on purpose as an example how to have different values for different variants.