Skip to content

Expected number of new cases fix

Luis Aleixo requested to merge feature/expected_reproduction_sr into master

The expected_new_cases method now considers the number of exposed people for long-range concentrations, and the number of people with short-range interactions when those are defined. Added validation in both ends.

Screenshot_2024-05-21_at_12.28.25

In this scenario there are 9 people exposed, in which 2 had short-range interactions:

  1. For long- and short-range: (2 * 33.4 / 100) + (9.9 * (9 - 2) / 100) = 1.36
  2. For long-range only: (9.9 * (9 - 2) / 100) = 0.69

Minor version update: v4.15.2

Test environment uploaded for further simulation/testing: https://caimira-test.web.cern.ch/calculator-cern?room_volume=100.0&total_people=10&data_registry=%3Ccaimira.store.data_registry.DataRegistry+object+at+0x7f1c92b73100%3E&inside_temp=293.0&location_name=Geneva%2C+CHE&location_latitude=46.20833&location_longitude=6.14275&room_number=test&simulation_name=test&virus_type=SARS_CoV_2_OMICRON&volume_type=room_volume_explicit&short_range_option=short_range_yes&short_range_interactions=%5B%7B%22expiration%22%3A+%22Shouting%22%2C+%22start_time%22%3A+%2210%3A30%22%2C+%22duration%22%3A+%2230%22%7D%5D&short_range_total_people=2

Edited by Luis Aleixo

Merge request reports