mountaindust / Planktos

ABM framework for dispersal modeling
https://planktos.readthedocs.io
GNU General Public License v3.0
5 stars 3 forks source link

Inform user when swarm is initialized outside of domain #46

Open mountaindust opened 2 years ago

mountaindust commented 2 years ago

Right now, you can run a full simulation with all the agents initialized outside the domain, and no error will be thrown until you try to plot things. When you try to plot, you get a division-by-zero error due to trying to calculate the statistic which tells you which percentage of the agents have left the domain since the simulation began.

This is obviously not ideal...