Bläddra i källkod

fix in folder mapping script (relative import)

Johannes Gütschow 1 år sedan
förälder
incheckning
90060020f4
2 ändrade filer med 3 tillägg och 1 borttagningar
  1. 2 0
      UNFCCC_GHG_data/helper/__init__.py
  2. 1 1
      UNFCCC_GHG_data/helper/folder_mapping.py

+ 2 - 0
UNFCCC_GHG_data/helper/__init__.py

@@ -5,6 +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
 
 __all__ = [
     "root_path",
@@ -22,4 +23,5 @@ __all__ = [
     "get_country_code",
     "get_country_name",
     "convert_categories",
+    "create_folder_mapping",
 ]

+ 1 - 1
UNFCCC_GHG_data/helper/folder_mapping.py

@@ -3,7 +3,7 @@
 # oir that folder
 
 import argparse
-from .functions import create_folder_mapping
+from UNFCCC_GHG_data.helper import create_folder_mapping
 
 # Find the right function and possible input and output files and
 # read the data using datalad run.