AllenDowney / ModSimPy

Text and supporting code for Modeling and Simulation in Python
https://allendowney.github.io/ModSimPy/
MIT License
823 stars 1.76k forks source link

Fix typo in cell #51

Closed syclops closed 4 years ago

syclops commented 4 years ago

This commit addresses a typo in the code that yields unexpected results.

In the cell, results, run_simulation(...) causes the simulation to be run correctly, but the results are never assigned back to the original results variable, meaning that the fraction of infected individuals is never updated over the course of the sweep. When running this code, it then seems like the fraction of infected individuals never changes, regardless of the number of doses (and resulting changes in beta).

AllenDowney commented 4 years ago

Fixed with 387a6ae4fdfe576ee35c160fd6228064b3429940

Thanks!