gyorilab / mira

MIRA modeling framework
BSD 2-Clause "Simplified" License
9 stars 7 forks source link

[BUG] Some templates are duplicated during stratification #329

Closed liunelson closed 6 months ago

liunelson commented 6 months ago
  1. I start with a simple compartmental model (SCRHD) Screenshot 2024-04-23 at 2 29 42 PM

  2. I use stratify to stratify the model by vaccination status u, v but only the variables S, C are stratified

    model_vax = stratify(
    model, 
    key = "vaxstatus", 
    strata = ["u", "v"], 
    cartesian_control = True, 
    structure = [],
    concepts_to_stratify = ["S", "C"],
    params_to_stratify = ["a", "vaxCtoH"]
    )
    model_vax.annotations.name = "SCRHD Vax"
  3. Note that two templates (H -> R, H -> D) are duplicated and that should not happen Screenshot 2024-04-23 at 2 27 13 PM Screenshot 2024-04-23 at 2 27 27 PM

Relevant AMR files: