BDI-pathogens / OpenABM-Covid19

OpenABM-Covid19: an agent-based model for modelling the spread of SARS-CoV-2 (coronavirus) and control interventions for the Covid-19 epidemic
GNU General Public License v3.0
111 stars 76 forks source link

Introduce spatial coordinates to individuals #220

Open dngrrng opened 2 years ago

dngrrng commented 2 years ago

Simply give individuals coordinates which can be assigned and reported.

Intended to allow intervention, and interaction, modelling as functions of distance between agents.

Passes tests, and added test_spatial.py to verify basic functionality.

@roberthinch

roberthinch commented 2 years ago

Please can you wait on adding this until you have a specific use case to be included (e.g. a spatially aware interaction network), otherwise there is a memory hit for no gain.

A small point, when you do add please can the co-ordinates be floats instead of doubles.

dngrrng commented 2 years ago

Please can you wait on adding this until you have a specific use case to be included (e.g. a spatially aware interaction network), otherwise there is a memory hit for no gain.

A small point, when you do add please can the co-ordinates be floats instead of doubles.

Thanks for taking the time to take a look!

Sounds good - I'll get back with some spatial-interaction and change the co-ordinates to floats