swifco_rs.csf.release module¶
- swifco_rs.csf.release.callback(callback, radius=0)¶
Lethally infects a randomly chosen individual in each cell returned by a Python callback
callback - A Python callback that receives the model step and returns a list of integer cell coordinate tuples where releases should take place. Use an empty list for no release in the time step
radius - a radius (in cells) where releases are performed as a fallback in cases the release cell contains no hosts
- swifco_rs.csf.release.random(tick=52)¶
Lethally infects a randomly chosen individual at the given tick
tick - Model tick (week) of virus release