소스 검색

fix bugs in pricessing refactoring

Johannes Gütschow 1 년 전
부모
커밋
bde5c9ffaf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 "