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

Fix string matching for method assessment in new_epiparameter() #401

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

joshwlambert
Copy link
Member

This PR improves the overwriting of $method_assess in the new_epiparameter() function when it is not a delay distribution, currently these would be either an offspring distribution or a case fatality risk. It was pointed out in the full package review (#394) that the previous use of == was error-prone and didn't match the current requirements in the parameter database (i.e. white space separated words).

epiparameter_db() has been updated to work with <epiparameter> objects that do not have a list for $method_assess but have a character string.

The sysdata.rda is updated.

@joshwlambert joshwlambert merged commit 939221d into main Oct 21, 2024
8 checks passed
@joshwlambert joshwlambert deleted the non-delay-method-assess branch October 21, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant