Skip to content

Commit

Permalink
Merge pull request #341 from mrc-ide/pmc_age_fix
Browse files Browse the repository at this point in the history
PMC age subsetting has a mistake in it. timesteps and time_index in s…
  • Loading branch information
giovannic authored Dec 27, 2024
2 parents fa12d59 + 0dfe13c commit 6c62bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pmc.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ create_pmc_process <- function(
return()
}
in_age <- variables$birth$get_index_of(
timesteps[time_index] - parameters$pmc_ages
timestep - parameters$pmc_ages
)$to_vector()
target <- in_age[sample_intervention(in_age, 'pmc', coverage, correlations)]

Expand Down

0 comments on commit 6c62bdf

Please sign in to comment.