This is not really a bug, but an erroneous error message that might cause confusion.
When defining a new variant, the key "rel_imm_variant" is listed as valid key, although it actually isn't.
To reproduce
Define a new variant and use the key "rel_imm_variant", for example:
Additional Context:
This is caused by rel_imm_variant being listed in variant_pars in default.py, but does not actually seem to be a parameter defined by variants.
Describe the bug
This is not really a bug, but an erroneous error message that might cause confusion. When defining a new variant, the key "rel_imm_variant" is listed as valid key, although it actually isn't.
To reproduce
Define a new variant and use the key "rel_imm_variant", for example:
Expected behavior Either accept the provided parameters, or state that
rel_imm_variant
is not a valid key.Screenshots or outputs
KeyNotFoundError: Could not parse variant keys "rel_imm_variant"; valid keys are: "rel_imm_variant, rel_beta, rel_symp_prob, rel_severe_prob, rel_crit_prob, rel_death_prob"
Platform (please complete the following information): Covasim 3.1.1 (2021-12-06) — © 2021 by IDM
Additional Context: This is caused by
rel_imm_variant
being listed invariant_pars
indefault.py
, but does not actually seem to be a parameter defined by variants.