Skip to content

Commit

Permalink
Removed mean(psi) multiplier from calculate_eir to allow tests to pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
RJSheppard committed May 22, 2024
1 parent 21d8f9a commit 2c1dab3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/biting_process.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ simulate_bites <- function(
calculate_eir <- function(species, solvers, variables, parameters, timestep) {
a <- human_blood_meal_rate(species, variables, parameters, timestep)
infectious <- calculate_infectious(species, solvers, variables, parameters)
age <- get_age(variables$birth$get_values(), timestep)
psi <- unique_biting_rate(age, parameters)
infectious * a * mean(psi)
infectious * a
}

effective_biting_rates <- function(a, .pi, p_bitten) {
Expand Down

0 comments on commit 2c1dab3

Please sign in to comment.