From 04a40d01883475117b1983fc75036facf551dfe4 Mon Sep 17 00:00:00 2001 From: Sijin Zhang Date: Wed, 3 May 2023 20:28:12 +1200 Subject: [PATCH] Update health_index.py --- june/epidemiology/infection/health_index/health_index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/june/epidemiology/infection/health_index/health_index.py b/june/epidemiology/infection/health_index/health_index.py index fe91e57dd..3ae657b5d 100644 --- a/june/epidemiology/infection/health_index/health_index.py +++ b/june/epidemiology/infection/health_index/health_index.py @@ -188,8 +188,8 @@ def _set_probability_per_age_bin(self, p, age_bin, sex, population): p[population][sex][age][0] = asymptomatic_rate # recovers as asymptomatic p[population][sex][age][1] = mild_rate # recovers as mild p[population][sex][age][2] = severe_rate # recovers as severe - p[population][sex][age][3] = ( - hospital_rate - hospital_dead_rate + p[population][sex][age][3] = max( + hospital_rate - hospital_dead_rate, 0 ) # recovers in the ward p[population][sex][age][4] = max( icu_rate - icu_dead_rate, 0