Skip to content

Commit

Permalink
Moved incidence renderer within if infected>0 statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
RJSheppard committed Jul 30, 2024
1 parent 3a9f181 commit c892bc3
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions R/human_infection.R
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c892bc3

Please sign in to comment.