mastrof / Bactos.jl

Agent-based modeling framework for bacterial behavior, based on Agents.jl
MIT License
3 stars 0 forks source link

Evaluate encounter rates using previous position instead of next one #81

Open mastrof opened 1 year ago

mastrof commented 1 year ago

Current approach to evaluate encounter rates can be unintuitive in some cases. Might even lead to errors if custom microbe_step! functions are used.

Instead of predicting whether an encounter will happen in the next step, the previous position of bacteria should be stored as a model property (updated at every step), and encounters can be tested by using their current position.

Not breaking, since all the changes happen internally.