From 49b2cd382da8bf9416955a7e2557a134a3905576 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Tue, 22 Aug 2023 14:43:15 +0200 Subject: [PATCH] Update scripts/plot_summary.py Co-authored-by: Fabian Hofmann --- scripts/plot_summary.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/scripts/plot_summary.py b/scripts/plot_summary.py index 0da0eb9d..be2b4d86 100644 --- a/scripts/plot_summary.py +++ b/scripts/plot_summary.py @@ -387,19 +387,9 @@ def historical_emissions(countries): countries.remove("GB") countries.append("UK") - # Albania (AL) and Bosnia Herzegovina (BA), Montenegro (ME), Macedonia (MK) and Serbia (RS) - # not included in eea historical emission dataset - if "AL" in countries: - countries.remove("AL") - if "BA" in countries: - countries.remove("BA") - if "ME" in countries: - countries.remove("ME") - if "MK" in countries: - countries.remove("MK") - if "RS" in countries: - countries.remove("RS") - + # remove countries which are not included in eea historical emission dataset + countries_to_remove = {"AL", "BA", "ME", "MK", "RS"} + countries = list(set(countries) - countries_to_remove) year = np.arange(1990, 2018).tolist() idx = pd.IndexSlice