
Atomica is a simulation engine for compartmental models. It can be used to simulate disease epidemics, health care cascades, and many other things.
To install via PyPI:
pip install atomica
You can run and plot an Atomica demo with:
import atomica as at
import matplotlib.pyplot as plt
P = at.demo("sir")
d = at.PlotData(P.results[0], project=P)
figs = at.plot_series(d)
plt.show()
Atomica root module |