diff --git a/R/human_infection.R b/R/human_infection.R index f5a8867d..3b0d0292 100644 --- a/R/human_infection.R +++ b/R/human_infection.R @@ -154,19 +154,18 @@ infection_outcome_process <- function( parameters, prob){ - incidence_renderer( - variables$birth, - renderer, - infected_humans, - 'inc_', - parameters$incidence_rendering_min_ages, - parameters$incidence_rendering_max_ages, - timestep - ) - if (infected_humans$size() > 0) { renderer$render('n_infections', infected_humans$size(), timestep) + incidence_renderer( + variables$birth, + renderer, + infected_humans, + 'inc_', + parameters$incidence_rendering_min_ages, + parameters$incidence_rendering_max_ages, + timestep + ) boost_immunity( variables$ica,