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

Add contacts simulation functionality #10

Merged
merged 10 commits into from
Oct 25, 2023
Merged

Add contacts simulation functionality #10

merged 10 commits into from
Oct 25, 2023

Conversation

joshwlambert
Copy link
Member

This PR adds a new exported function sim_contacts(), which produces a table of contacts for an infectious disease outbreak. Internally, this function has a lot of overlap with sim_linelist() and uses the internal functionality of other {simulist} functions. .create_contacts() is also added as the internal function that produces the contacts table.

sim_linelist() is updated to remove the previously WIP option to include contacts in the output of that function, and the include_contacts argument has now been removed from the function (as has the test that checked this).

Tests for sim_contacts() have been added.

@joshwlambert joshwlambert added the enhancement New feature or request label Oct 25, 2023
@joshwlambert
Copy link
Member Author

Closing and reopening PR to trigger required organisation workflows.

@joshwlambert joshwlambert merged commit eb7f69d into main Oct 25, 2023
9 checks passed
@joshwlambert joshwlambert deleted the add_contacts branch October 25, 2023 15:07
@joshwlambert joshwlambert mentioned this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants