Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimise .sim_network_bp() #85

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Optimise .sim_network_bp() #85

merged 1 commit into from
Feb 23, 2024

Conversation

joshwlambert
Copy link
Member

This PR addresses a comment from the package review #73. It optimises the .sim_network_bp() function by moving the computation of the contact distribution density outside of the loop sampling contacts. This density is static given the input parameters and does not need to be updated during the simulation.

@joshwlambert joshwlambert added the internal Updates that only change internal functions label Feb 23, 2024
@joshwlambert joshwlambert merged commit 018f9dd into main Feb 23, 2024
7 checks passed
@joshwlambert joshwlambert deleted the optimise-sim_network_bp branch February 23, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Updates that only change internal functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant