Browse Source

fix bugs in pricessing refactoring

Johannes Gütschow 1 year ago
parent
commit
bde5c9ffaf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UNFCCC_GHG_data/helper/functions.py

+ 1 - 1
UNFCCC_GHG_data/helper/functions.py

@@ -54,7 +54,7 @@ def process_data_for_country(
     scenario = scenarios[0]
 
     # get source
-    sources = list(data_country.coords[data_country.attrs['source']].values)
+    sources = list(data_country.coords['source'].values)
     if len(sources) > 1:
         raise ValueError(
             f"Found {len(sources)} sources. Only single source data "