Update scripts/plot_summary.py

Co-authored-by: Fabian Hofmann <hofmann@fias.uni-frankfurt.de>
This commit is contained in:
Fabian Neumann 2023-08-22 14:43:15 +02:00 committed by GitHub
parent eed52d04ae
commit 49b2cd382d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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