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

seed mixed up with seeding_cases in run.R #113

Open
skyehersh opened this issue May 28, 2020 · 2 comments
Open

seed mixed up with seeding_cases in run.R #113

skyehersh opened this issue May 28, 2020 · 2 comments

Comments

@skyehersh
Copy link

Hello, think I found a minor variable misuse issue. Here are lines 362 and 363 in run.R when pars is defined:

S_0 = population - seed,
E1_0 = seed,

It seems that these call for seeding_cases instead of seed, as line 298 says:

parameters$seeding_cases <- pars$E1_0.

Found this when passing a seed greater than my population size to calibrate(), which threw the following error:

Error in init_check_explicit(init, population, seeding_cases) : 
  population size is not large enough in each age bracket
@richfitz
Copy link
Member

@OJWatson - can you try running things with:

options(warnPartialMatchAttr=TRUE,
        warnPartialMatchDollar=TRUE,
        warnPartialMatchArgs=TRUE)

and it will likely flush out the root cause of this

@OJWatson
Copy link
Collaborator

Yup will try and get round to this today :)

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

No branches or pull requests

3 participants