Kaynağa Gözat

adapt scripts to package structure

Johannes Gütschow 1 yıl önce
ebeveyn
işleme
03e1e909bd

+ 3 - 3
UNFCCC_GHG_data/UNFCCC_CRF_reader/CRF_raw_for_year.py

@@ -24,9 +24,9 @@ dataset_path = root_path / "datasets" / "UNFCCC"
 
 #sys.path.append(code_path.name)
 
-from .util import all_crf_countries
-from .UNFCCC_CRF_reader_prod import get_input_and_output_files_for_country
-from .UNFCCC_CRF_reader_prod import submission_has_been_read
+from UNFCCC_GHG_data.UNFCCC_CRF_reader.util import all_crf_countries
+from UNFCCC_GHG_data.UNFCCC_CRF_reader.UNFCCC_CRF_reader_prod import get_input_and_output_files_for_country
+from UNFCCC_GHG_data.UNFCCC_CRF_reader.UNFCCC_CRF_reader_prod import submission_has_been_read
 
 parser = argparse.ArgumentParser()
 parser.add_argument('--submission_year', help='Submission round to read', type=int)

+ 1 - 1
UNFCCC_GHG_data/UNFCCC_CRF_reader/read_UNFCCC_CRF_submission.py

@@ -3,7 +3,7 @@ This script is a wrapper around the read_crf_for_country
 function such that it can be called from datalad
 """
 
-from .UNFCCC_CRF_reader_prod import read_crf_for_country
+from UNFCCC_GHG_data.UNFCCC_CRF_reader.UNFCCC_CRF_reader_prod import read_crf_for_country
 import argparse
 
 parser = argparse.ArgumentParser()

+ 1 - 1
UNFCCC_GHG_data/UNFCCC_CRF_reader/read_UNFCCC_CRF_submission_datalad.py

@@ -4,7 +4,7 @@ from doit in the current setup where doit runs on system python and
 not in the venv.
 """
 
-from .UNFCCC_CRF_reader_prod import read_crf_for_country_datalad
+from UNFCCC_GHG_data.UNFCCC_CRF_reader.UNFCCC_CRF_reader_prod import read_crf_for_country_datalad
 import argparse
 
 parser = argparse.ArgumentParser()

+ 2 - 1
UNFCCC_GHG_data/UNFCCC_CRF_reader/read_new_UNFCCC_CRF_for_year.py

@@ -3,7 +3,8 @@ This script is a wrapper around the read_crf_for_country
 function such that it can be called from datalad
 """
 
-from .UNFCCC_CRF_reader_prod import read_new_crf_for_year
+from UNFCCC_GHG_data.UNFCCC_CRF_reader.UNFCCC_CRF_reader_prod import \
+    read_new_crf_for_year
 import argparse
 
 parser = argparse.ArgumentParser()

+ 2 - 2
UNFCCC_GHG_data/UNFCCC_CRF_reader/read_new_UNFCCC_CRF_for_year_datalad.py

@@ -4,8 +4,8 @@ from doit in the current setup where doit runs on system python and
 not in the venv.
 """
 
-from .UNFCCC_CRF_reader_prod import read_new_crf_for_year_datalad
-from util import NoCRFFilesError
+from UNFCCC_GHG_data.UNFCCC_CRF_reader.UNFCCC_CRF_reader_prod import read_new_crf_for_year_datalad
+from UNFCCC_GHG_data.UNFCCC_CRF_reader.util import NoCRFFilesError
 import argparse
 
 parser = argparse.ArgumentParser()