Skip to content

Commit

Permalink
add whitespace back in
Browse files Browse the repository at this point in the history
  • Loading branch information
htopazian committed May 21, 2024
1 parent f1eb68c commit 7c5232c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion R/mortality_processes.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ reset_target <- function(variables, events, target, state, parameters, timestep)

# onwards infectiousness
variables$infectivity$queue_update(0, target)

# treated compartment residence time:
if(!is.null(variables$dt)) {
variables$dt$queue_update(parameters$dt, target)
Expand Down
12 changes: 6 additions & 6 deletions R/processes.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ create_processes <- function(
correlations,
lagged_eir,
lagged_infectivity,
timesteps,
timesteps,
mixing = 1,
mixing_index = 1
) {
Expand Down Expand Up @@ -105,22 +105,22 @@ create_processes <- function(
0
)
)

# =======================
# Antimalarial Resistance
# =======================
# Add an a new process which governs the transition from Tr to S when
# antimalarial resistance is simulated. The rate of transition switches
# from a parameter to a variable when antimalarial resistance == TRUE.

# Assign the dt input to a separate object with the default single parameter value:
dt_input <- parameters$dt

# If antimalarial resistance is switched on, assign dt variable values to the
# If antimalarial resistance is switched on, assign dt variable values to the
if(parameters$antimalarial_resistance) {
dt_input <- variables$dt
}

# Create the progression process for Tr --> S specifying dt_input as the rate:
processes <- c(
processes,
Expand Down

0 comments on commit 7c5232c

Please sign in to comment.