diff --git a/all_countries.py b/all_countries.py index 20c47f2..8d42330 100644 --- a/all_countries.py +++ b/all_countries.py @@ -79,7 +79,7 @@ def plot(data, countries, pop, metadata={}, **kwargs): warn_thresh = 500e-6 * pop[loc]['pop']/7 info_thresh = 50e-6 * pop[loc]['pop']/7 low_thresh = 5e-6 * pop[loc]['pop']/7 - actual_level = np.mean(new_cases[-7:]) + actual_level = np.mean(new_cases[-8:-2]) infection_level_indicator = "green" if actual_level > low_thresh: infection_level_indicator = "gold"