Skip to content
Snippets Groups Projects
Commit 81f26173 authored by Maciej Wielgosz's avatar Maciej Wielgosz
Browse files

zipping the output for the oracle cloud

parent 6383b409
No related branches found
No related tags found
No related merge requests found
...@@ -26,14 +26,14 @@ def run_oracle_wrapper(path_to_config_file): ...@@ -26,14 +26,14 @@ def run_oracle_wrapper(path_to_config_file):
client = ObjectStorageClient(config) client = ObjectStorageClient(config)
# read system environment variables # read system environment variables
# input_location = os.environ['OBJ_INPUT_LOCATION'] input_location = os.environ['OBJ_INPUT_LOCATION']
# output_location = os.environ['OBJ_OUTPUT_LOCATION'] output_location = os.environ['OBJ_OUTPUT_LOCATION']
# input_location = "oci://maciej-seg-test-in@axqlz2potslu/las_files" # input_location = "oci://maciej-seg-test-in@axqlz2potslu/las_files"
# output_location = "oci://maciej-seg-test-out@axqlz2potslu" # output_location = "oci://maciej-seg-test-out@axqlz2potslu"
input_location = "oci://forestsens_temp@axqlz2potslu/acc_6/batch_274/original_las_files" # input_location = "oci://forestsens_temp@axqlz2potslu/acc_6/batch_274/original_las_files"
output_location = "oci://maciej-seg-test-out@axqlz2potslu" # output_location = "oci://maciej-seg-test-out@axqlz2potslu"
# doing for the input # doing for the input
...@@ -129,6 +129,11 @@ def run_oracle_wrapper(path_to_config_file): ...@@ -129,6 +129,11 @@ def run_oracle_wrapper(path_to_config_file):
else: else:
path_to_the_output_folder = config_flow_params['general']['output_folder'] path_to_the_output_folder = config_flow_params['general']['output_folder']
# zip the files in path_to_the_output_folder
zip_file_name = 'results'
shutil.make_archive(zip_file_name, 'zip', path_to_the_output_folder) # this will be done in the current folder
shutil.copy('results.zip', path_to_the_output_folder)
# get list of files in the output folder # get list of files in the output folder
list_of_files = os.listdir(path_to_the_output_folder) list_of_files = os.listdir(path_to_the_output_folder)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment