rajeshrinet / pyross

PyRoss: inference, forecasts, and optimised control of epidemiological models in Python. github.com/rajeshrinet/pyross
https://pyross.readthedocs.io
MIT License
169 stars 57 forks source link

Fixed the bug of division by zero for constructing spatial contact matrix #34

Closed hidekb closed 4 years ago

hidekb commented 4 years ago

For applying spatial contact matrix to the realistic commuter network, I fixed the bug of "division by zero" in construction of the spatial contact matrix. Additionally, I introduced the multi thread calculation to some function in contactMatrix.pyx.