Skip to content

[Feature request]: Update Initial Conditions Handling In flepiconfig #597

@TimothyWillard

Description

@TimothyWillard

Label

enhancement, config, r-flepiconfig

Priority Label

high priority

Is your feature request related to a problem? Please describe.

Need to update the flepiconfig::print_init_conditions function to account for #572.

Is your feature request related to a new application, scenario round, pathogen? Please describe.

Flu 2025

Describe the solution you'd like

#' print_init_conditions
#'
#' @description Print initial conditions section of config
#'
#' @param method
#' @param proportional
#' @param perturbation if TRUE, will print perturbation section, requires other values below
#' @param pert_dist distribution of the perturbation
#' @param pert_mean mean of perturbation
#' @param pert_sd standard deviation of perturbation
#' @param pert_a minimum value of perturbation
#' @param pert_b maximum value of perturbation
#'
#' @details
#' Config helper to print initial conditions section
#' @export
#'
#' @examples
#' print_init_conditions()
#'
print_init_conditions <- function(method = "SetInitialConditionsFolderDraw",
proportional = "True",
perturbation = TRUE,
pert_dist = "truncnorm",
pert_mean = 0,
pert_sd = 0.02,
pert_a = -1,
pert_b = 1){
cat(paste0("initial_conditions: \n",
" method: ", method, "\n",
" proportional: ", proportional, "\n",
ifelse(perturbation, paste0(" perturbation: \n",
" distribution: ", pert_dist, "\n",
" mean: ", pert_mean, "\n",
" sd: ", pert_sd, "\n",
" a: ", pert_a, "\n",
" b: ", pert_b),
"\n")
))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    configRelating to configuration files or their framework.enhancementRequest for improvement or addition of new feature(s).high priorityHigh priority.r-flepiconfigRelating to the R configuration package.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions