Skip to content

Commit

Permalink
Update main.R
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithJF82 committed May 28, 2024
1 parent 23cfcc2 commit f61fe04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/main.R
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ Model_Run_Many_Reps <- function(FOI_spillover = 0.0,R0 = 1.0,vacc_data = list(),
parameter_setup <- function(FOI_spillover=0.0,R0=1.0,vacc_data=list(),pop_data=list(),year0=1940,
years_data=c(1941:1942),mode_start=0,vaccine_efficacy=1.0,start_SEIRV=list(),dt=1.0){

assert_that(FOI_spillover>=0.0)
assert_that(FOI_spillover>0.0)
assert_that(R0>0.0)
assert_that(length(pop_data[,1])>1,msg="Need population data for multiple years")
assert_that(length(pop_data[1,])>1,msg="Need population data for multiple age groups")
Expand Down

0 comments on commit f61fe04

Please sign in to comment.