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

run results processing throws numpy runtime warning on extreme values for patient proportions #18

Open
TomMonks opened this issue May 23, 2024 · 0 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@TomMonks
Copy link
Member

Steps to recreate:

scenario = Scenario(prob_trauma=0.0)

# run the model in single run model
run_results = single_run(scenario, random_no_set=42)

This results in a numpy runtime warning as it is attempting to take a mean of an empty slice for Trauma patients. The single_run method creates an instance of SimulationSummary that attempts to run the code. The code still runs, but a warning is produced. Testing currently suppresses the runtime error.

The reverse is true if prob_trauma=1.0

@TomMonks TomMonks added bug Something isn't working invalid This doesn't seem right labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant