epiverse-trace / epichains

[Under active development] Methods for simulating and analysing the sizes and lengths of infectious disease transmission chains from branching process models
https://epiverse-trace.github.io/epichains/
Other
5 stars 2 forks source link

Misc suggestions for simulate_chains() #194

Closed Bisaloo closed 7 months ago

Bisaloo commented 7 months ago

The suggestions here come from investigating #179.

Indeed, the code here gives a cyclomatic complexity of 18. Some changes might be subjective preferences so feel free to cherry pick the changes you like.

Bisaloo commented 7 months ago

This commit is breaking the tests but I'm not completely sure why: ab38713 (#194).