Browse Source

fix bugs in CRF reader and country definitions

Johannes Gütschow 9 months ago
parent
commit
2a72fd50e0

+ 2 - 6
src/unfccc_ghg_data/helper/definitions.py

@@ -29,13 +29,9 @@ legacy_data_path = root_path / "legacy_data"
 dataset_path = root_path / "datasets"
 dataset_path_UNFCCC = dataset_path / "UNFCCC"
 
-nAI_countries = list(
-    pd.read_csv(code_path / "unfccc_di_reader" / "DI_NAI_parties.conf")["code"]
-)
+nAI_countries = list(pd.read_csv(code_path / "helper" / "DI_NAI_parties.conf")["code"])
 # AI_countries = list(reader.annex_one_reader.parties["code"])
-AI_countries = list(
-    pd.read_csv(code_path / "unfccc_di_reader" / "DI_AI_parties.conf")["code"]
-)
+AI_countries = list(pd.read_csv(code_path / "helper" / "DI_AI_parties.conf")["code"])
 
 all_countries = nAI_countries + AI_countries
 

+ 1 - 0
src/unfccc_ghg_data/unfccc_crf_reader/unfccc_crf_reader_prod.py

@@ -140,6 +140,7 @@ def read_crf_for_country(  # noqa: PLR0912, PLR0915
         country_name,
         submission_year=submission_year,
         submission_date=submission_date,
+        type=type,
         verbose=True,
     )