src.simulation.scenario_simulation_inputs

Build simulation inputs that depend on the scenario.

Every public function receives the dependency paths and fixed inputs as arguments and must return a dictionary with the following entries:

  • contact_policies

  • vaccination_models

  • rapid_test_models

  • rapid_test_reaction_models

Module Contents

Functions

baseline(paths, fixed_inputs)

baseline_save_rapid_test_statistics(paths, fixed_inputs)

_baseline_rapid_test_models_with_save_inputs(paths, fixed_inputs)

completely_random_rapid_tests(paths, fixed_inputs)

random_rapid_tests_with_30pct_refusers(paths, fixed_inputs)

_scenario_with_random_rapid_tests(paths, fixed_inputs, share_refuser)

open_all_educ_after_summer_scenario_start(paths, fixed_inputs)

open_all_educ_after_easter(paths, fixed_inputs)

_open_all_educ_after_date(paths, fixed_inputs, split_date, multiplier=HYGIENE_MULTIPLIER)

only_strict_emergency_care_after_april_5(paths, fixed_inputs)

close_educ_after_april_5(paths, fixed_inputs)

no_rapid_tests(paths, fixed_inputs)

no_vaccinations(paths, fixed_inputs)

just_seasonality(paths, fixed_inputs)

vaccinations_after_summer_scenario_start_as_on_strongest_week_day(paths, fixed_inputs)

Increase the vaccination rate to that of the best average weekday.

vaccinations_after_easter_as_on_strongest_week_day(paths, fixed_inputs)

Increase the vaccination rate to that of the best average weekday.

vaccinate_1_pct_per_day_after_easter(paths, fixed_inputs)

Increase the vaccination rate to 1% per day.

_get_vaccination_model_with_new_value_after_date(vaccination_shares, init_start, change_date, new_val, model_name)

robustness_check(paths, fixed_inputs)

Change the inputs to remove knowledge of the time after March 1st.

_replace_vaccination_shares_with_prediction_from_feb(vaccination_shares, init_start)

Use an extrapolated prediction from February for the vaccination shares.

strict_home_office_after_easter(paths, fixed_inputs)

Define strict home office after Easter.

strict_home_office_after_summer_scenario_start(paths, fixed_inputs)

Define strict home office after summer scenario starts.

_get_policies_with_different_work_attend_multiplier_after_date(enacted_policies, contact_models, new_attend_multiplier, split_date, prefix)

Set the attend work multiplier to new_attend_multiplier after date.

minus_10_pct_home_office_after_easter(paths, fixed_inputs)

Hypothetical scenario where there is 10 pct less home office after Easter.

plus_10_pct_home_office_after_easter(paths, fixed_inputs)

Hypothetical scenario where there is 10 pct more home office after Easter.

_get_policies_with_multiplied_work_attend_multiplier_after_date(enacted_policies, contact_models, multiplier, split_date, prefix)

Multiply the attend work multiplier with multiplier after date.

_baseline_policies(fixed_inputs)

_baseline_rapid_test_models(fixed_inputs)

_baseline_rapid_test_reaction_models(fixed_inputs)

_baseline_vaccination_models(paths, fixed_inputs)

baseline(paths, fixed_inputs)[source]
baseline_save_rapid_test_statistics(paths, fixed_inputs)[source]
_baseline_rapid_test_models_with_save_inputs(paths, fixed_inputs)[source]
completely_random_rapid_tests(paths, fixed_inputs)[source]
random_rapid_tests_with_30pct_refusers(paths, fixed_inputs)[source]
_scenario_with_random_rapid_tests(paths, fixed_inputs, share_refuser)[source]
open_all_educ_after_summer_scenario_start(paths, fixed_inputs)[source]
open_all_educ_after_easter(paths, fixed_inputs)[source]
_open_all_educ_after_date(paths, fixed_inputs, split_date, multiplier=HYGIENE_MULTIPLIER)[source]
only_strict_emergency_care_after_april_5(paths, fixed_inputs)[source]
close_educ_after_april_5(paths, fixed_inputs)[source]
no_rapid_tests(paths, fixed_inputs)[source]
no_vaccinations(paths, fixed_inputs)[source]
just_seasonality(paths, fixed_inputs)[source]
vaccinations_after_summer_scenario_start_as_on_strongest_week_day(paths, fixed_inputs)[source]

Increase the vaccination rate to that of the best average weekday.

Averages were taken over the time since family physicians started vaccinating. This vaccination rate is extrapolated to every day, including weekends.

This abstracts from possible constraints on the amount of available doses.

vaccinations_after_easter_as_on_strongest_week_day(paths, fixed_inputs)[source]

Increase the vaccination rate to that of the best average weekday.

Averages were taken over the time since familiy physicians started vaccinating. This vaccination rate is extrapolated to every day, including weekends.

This abstracts from possible constraints on the amount of available doses.

vaccinate_1_pct_per_day_after_easter(paths, fixed_inputs)[source]

Increase the vaccination rate to 1% per day.

There were 3 days on which this many people were vaccinated before May 26.

This abstracts from possible constraints on the amount of available doses.

_get_vaccination_model_with_new_value_after_date(vaccination_shares, init_start, change_date, new_val, model_name)[source]
robustness_check(paths, fixed_inputs)[source]

Change the inputs to remove knowledge of the time after March 1st.

This function does the following:
  • fix the work attend multiplier to the value of end of February

  • use a simple linear extrapolation of the February vaccination data.

_replace_vaccination_shares_with_prediction_from_feb(vaccination_shares, init_start)[source]

Use an extrapolated prediction from February for the vaccination shares.

strict_home_office_after_easter(paths, fixed_inputs)[source]

Define strict home office after Easter.

The attendance multiplier is set to 0.54 which corresponds to the mean work multiplier in April 2020.

strict_home_office_after_summer_scenario_start(paths, fixed_inputs)[source]

Define strict home office after summer scenario starts.

The attendance multiplier is set to 0.54 which corresponds to the mean work multiplier in April 2020.

_get_policies_with_different_work_attend_multiplier_after_date(enacted_policies, contact_models, new_attend_multiplier, split_date, prefix)[source]

Set the attend work multiplier to new_attend_multiplier after date.

In April 2020, the mean work multiplier was 0.54. In November 2020 it was 0.83.

minus_10_pct_home_office_after_easter(paths, fixed_inputs)[source]

Hypothetical scenario where there is 10 pct less home office after Easter.

plus_10_pct_home_office_after_easter(paths, fixed_inputs)[source]

Hypothetical scenario where there is 10 pct more home office after Easter.

_get_policies_with_multiplied_work_attend_multiplier_after_date(enacted_policies, contact_models, multiplier, split_date, prefix)[source]

Multiply the attend work multiplier with multiplier after date.

_baseline_policies(fixed_inputs)[source]
_baseline_rapid_test_models(fixed_inputs)[source]
_baseline_rapid_test_reaction_models(fixed_inputs)[source]
_baseline_vaccination_models(paths, fixed_inputs)[source]