Skip to content

Commit

Permalink
cleaner opt passing
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Jan 10, 2025
1 parent 27097cb commit bafef0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/create.R
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ create_rt_data <- function(rt = rt_opts(), breakpoints = NULL,
breakpoints = breakpoints,
future_fixed = as.numeric(future_rt$fixed),
fixed_from = future_rt$from,
use_pop = as.integer(rt$pop != Fixed(0)) + as.integer(rt$estimate_pop),
use_pop =
as.integer(rt$pop != Fixed(0)) + as.integer(rt$pop_period == "all"),
stationary = as.numeric(rt$gp_on == "R0"),
future_time = horizon - future_rt$from
)
Expand Down
1 change: 0 additions & 1 deletion R/opts.R
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ rt_opts <- function(prior = LogNormal(mean = 1, sd = 1),
)
)
}
rt$estimate_pop <- TRUE

if (rt$use_rt) {
rt$prior <- prior
Expand Down

0 comments on commit bafef0b

Please sign in to comment.