Skip to content

["bug"] Market share no longer divided by 100 before creating Parameters object #287

@ecsmyth

Description

@ecsmyth

Description:

market_share is not divided by 100 before creating the Parameters object in presentation.py (presentation.py line 293 market_share=market_share). This results in the Parameters object containing values between 0 and 100 instead of the expected range of 0 to 1.

Steps to reproduce:

  1. Run ./script/server
  2. Open CHIME in a browser

Expected behavior:

The estimated number of currently infected individuals is 3733. The 510 confirmed cases in the region imply a 14% rate of detection. This is based on current inputs for Hospitalizations (14), Hospitalization rate (2%), Region size (4119405), and Hospital market share (15%).

What I got instead:

The estimated number of currently infected individuals is 3733. The 510 confirmed cases in the region imply a 1366% rate of detection. This is based on current inputs for Hospitalizations (14), Hospitalization rate (2%), Region size (4119405), and Hospital market share (1500%).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions