-
Notifications
You must be signed in to change notification settings - Fork 4
[Feature request]: Update Initial Conditions Handling In flepiconfig #597
Copy link
Copy link
Open
Labels
configRelating to configuration files or their framework.Relating to configuration files or their framework.enhancementRequest for improvement or addition of new feature(s).Request for improvement or addition of new feature(s).high priorityHigh priority.High priority.r-flepiconfigRelating to the R configuration package.Relating to the R configuration package.
Description
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
flepiMoP/flepimop/R_packages/flepiconfig/R/yaml_utils.R
Lines 2152 to 2193 in ad62f2d
| #' 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") | |
| )) | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
configRelating to configuration files or their framework.Relating to configuration files or their framework.enhancementRequest for improvement or addition of new feature(s).Request for improvement or addition of new feature(s).high priorityHigh priority.High priority.r-flepiconfigRelating to the R configuration package.Relating to the R configuration package.