|
@@ -10,11 +10,10 @@ run the appropriate script to extract the submission data
|
|
import argparse
|
|
import argparse
|
|
|
|
|
|
import datalad.api
|
|
import datalad.api
|
|
|
|
+from get_submissions_info import get_possible_inputs, get_possible_outputs
|
|
|
|
|
|
from unfccc_ghg_data.helper import get_code_file, root_path
|
|
from unfccc_ghg_data.helper import get_code_file, root_path
|
|
|
|
|
|
-from .get_submissions_info import get_possible_inputs, get_possible_outputs
|
|
|
|
-
|
|
|
|
if __name__ == "__main__":
|
|
if __name__ == "__main__":
|
|
# Find the right function and possible input and output files and
|
|
# Find the right function and possible input and output files and
|
|
# read the data using datalad run.
|
|
# read the data using datalad run.
|
|
@@ -73,7 +72,7 @@ if __name__ == "__main__":
|
|
|
|
|
|
print("Run the script using datalad run via the python api")
|
|
print("Run the script using datalad run via the python api")
|
|
datalad.api.run(
|
|
datalad.api.run(
|
|
- cmd=f"./venv/bin/python3 {script_name.as_posix()}",
|
|
|
|
|
|
+ cmd=f"python3 {script_name.as_posix()}",
|
|
dataset=root_path,
|
|
dataset=root_path,
|
|
message=f"Read data for {country}, {submission}.",
|
|
message=f"Read data for {country}, {submission}.",
|
|
inputs=input_files,
|
|
inputs=input_files,
|