Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Different behaviour when running one_simulation(), compared to gempyor-simulate #373

Open
saraloo opened this issue Oct 29, 2024 · 0 comments
Labels
gempyor Concerns the Python core. low priority Low priority.

Comments

@saraloo
Copy link
Contributor

saraloo commented Oct 29, 2024

Label

gempyor

Priority Label

low priority

Describe the bug/issue

I have a config with a long chunk of outcomes. Not sure what is going on under the hood here but I get an error when running the config from a python notebook using one_simulation() but do not get any error when running gempyor-simulate from CLI.

To Reproduce

Config is https://github.com/HopkinsIDD/RSV_USA/blob/main/config_rsvnet_2024_vaccination_emcee.yml

When running the following command in python

gempyor_simulator = gempyor.GempyorInference(
    config_filepath="config_rsvnet_2024_vaccination_emcee.yml",
    run_id="test_run_id",
    prefix="test_prefix/",
    stoch_traj_flag=False,
    autowrite_seir=True,
)
gempyor_simulator.one_simulation(sim_id2write=0)

I get the following error

ValueError: ERROR with outcome incidH_age65to100_waned_v2: the specified source incidH_age65to100_waned is not a dictionnary (for seir outcome) nor an existing pre-identified outcomes.

But instead, running the following works with no errors

gempyor-simulate -c config_rsvnet_2024_vaccination_emcee.yml -n 1

Environment, if relevant

No response

@saraloo saraloo added gempyor Concerns the Python core. low priority Low priority. labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gempyor Concerns the Python core. low priority Low priority.
Projects
None yet
Development

No branches or pull requests

1 participant