nkremerh / sugarscape

Development repository for the Digital Terraria Lab implementation of the Sugarscape agent-based societal simulation.
https://github.com/digital-terraria-lab/sugarscape
MIT License
7 stars 11 forks source link

Resolves divide-by-zero error when finding means on extinct models #102

Closed colinhanrahan closed 1 month ago

colinhanrahan commented 1 month ago

When all runs of one model go extinct, the total population across those models will be 0 and so the divisor will be 0 for findMeans.