Browse Source

UNFCCC reader fix

Johannes Gütschow 1 year ago
parent
commit
6dcca29e60

+ 1 - 2
UNFCCC_GHG_data/UNFCCC_reader/read_UNFCCC_submission.py

@@ -3,10 +3,9 @@
 
 import datalad.api
 import argparse
-from get_submissions_info import get_code_file
 from get_submissions_info import get_possible_inputs
 from get_submissions_info import get_possible_outputs
-from UNFCCC_GHG_data.helper import root_path
+from UNFCCC_GHG_data.helper import root_path, get_code_file
 
 # Find the right function and possible input and output files and
 # read the data using datalad run.

+ 2 - 1
UNFCCC_GHG_data/helper/__init__.py

@@ -5,7 +5,7 @@ from .definitions import downloaded_data_path, downloaded_data_path_UNFCCC
 from .definitions import dataset_path, dataset_path_UNFCCC
 from .definitions import custom_country_mapping, custom_folders
 from .functions import get_country_code, get_country_name, convert_categories
-from .functions import create_folder_mapping, process_data_for_country
+from .functions import create_folder_mapping, process_data_for_country, get_code_file
 
 __all__ = [
     "root_path",
@@ -25,4 +25,5 @@ __all__ = [
     "convert_categories",
     "create_folder_mapping",
     "process_data_for_country",
+    "get_code_file",
 ]