فهرست منبع

docs: fix import issue

Daniel Busch 6 ماه پیش
والد
کامیت
1d2ca5a77f

+ 6 - 0
docs/source/api/unfccc_ghg_data.unfccc_reader.Bangladesh.read_BGD_BUR1_from_pdf.rst

@@ -0,0 +1,6 @@
+unfccc\_ghg\_data.unfccc\_reader.Bangladesh.read\_BGD\_BUR1\_from\_pdf
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. automodule:: unfccc_ghg_data.unfccc_reader.Bangladesh.read_BGD_BUR1_from_pdf
+
+.. currentmodule:: unfccc_ghg_data.unfccc_reader.Bangladesh.read_BGD_BUR1_from_pdf

+ 13 - 0
docs/source/api/unfccc_ghg_data.unfccc_reader.Bangladesh.rst

@@ -0,0 +1,13 @@
+unfccc\_ghg\_data.unfccc\_reader.Bangladesh
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. automodule:: unfccc_ghg_data.unfccc_reader.Bangladesh
+
+.. currentmodule:: unfccc_ghg_data.unfccc_reader.Bangladesh
+
+
+.. autosummary::
+  :toctree: ./
+
+  unfccc_ghg_data.unfccc_reader.Bangladesh.config_bgd_bur1
+  unfccc_ghg_data.unfccc_reader.Bangladesh.read_BGD_BUR1_from_pdf

+ 1 - 0
docs/source/api/unfccc_ghg_data.unfccc_reader.rst

@@ -10,6 +10,7 @@ unfccc\_ghg\_data.unfccc\_reader
   :toctree: ./
 
   unfccc_ghg_data.unfccc_reader.Argentina
+  unfccc_ghg_data.unfccc_reader.Bangladesh
   unfccc_ghg_data.unfccc_reader.Burundi
   unfccc_ghg_data.unfccc_reader.Chile
   unfccc_ghg_data.unfccc_reader.China

+ 8 - 8
src/unfccc_ghg_data/unfccc_reader/Bangladesh/read_BGD_BUR1_from_pdf.py

@@ -6,7 +6,14 @@ import camelot
 import numpy as np
 import pandas as pd
 import primap2 as pm2
-from config_bgd_bur1 import (
+
+from unfccc_ghg_data.helper import (
+    downloaded_data_path,
+    extracted_data_path,
+    fix_rows,
+    process_data_for_country,
+)
+from unfccc_ghg_data.unfccc_reader.Bangladesh.config_bgd_bur1 import (
     coords_cols,
     coords_defaults,
     coords_terminologies,
@@ -22,13 +29,6 @@ from config_bgd_bur1 import (
     wide_to_long_col_replace,
 )
 
-from unfccc_ghg_data.helper import (
-    downloaded_data_path,
-    extracted_data_path,
-    fix_rows,
-    process_data_for_country,
-)
-
 if __name__ == "__main__":
     # ###
     # configuration

+ 8 - 8
src/unfccc_ghg_data/unfccc_reader/Mongolia/read_MNG_BUR2_from_pdf.py

@@ -5,7 +5,14 @@ Read Mongolia's BUR2 from pdf
 import camelot
 import pandas as pd
 import primap2 as pm2
-from config_mng_bur2 import (
+
+from unfccc_ghg_data.helper import (
+    downloaded_data_path,
+    extracted_data_path,
+    fix_rows,
+    process_data_for_country,
+)
+from unfccc_ghg_data.unfccc_reader.Mongolia.config_mng_bur2 import (
     coords_cols,
     coords_defaults,
     coords_terminologies,
@@ -21,13 +28,6 @@ from config_mng_bur2 import (
     meta_data,
 )
 
-from unfccc_ghg_data.helper import (
-    downloaded_data_path,
-    extracted_data_path,
-    fix_rows,
-    process_data_for_country,
-)
-
 # pd.options.mode.chained_assignment = None  # default='warn'
 
 if __name__ == "__main__":