From bc4451cefdc4e25b461aa5182b0808ac1c36aa7a Mon Sep 17 00:00:00 2001
From: Maciej Wielgosz <maciej.wielgosz@nibio.no>
Date: Wed, 18 Jan 2023 13:32:48 +0100
Subject: [PATCH] pipeline for oracle cloud deployment, frist version done

---
 run.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/run.py b/run.py
index 75402e5..4d94222 100644
--- a/run.py
+++ b/run.py
@@ -109,6 +109,12 @@ def main(path_to_config_file):
         for file in las_segmented_files:
             os.system("cp {} {}".format(file, config["general"]["output_folder"]))
 
+    ### if both semantic and instance segmentation are run transfer data to the output folder
+    if config["general"]["run_sematic_segmentation"] and config["general"]["run_instance_segmentation"]:
+        source_folder = os.path.join(config["general"]["input_folder"], "results")
+        # copy all the files and folders from the source folder to the output folder
+        os.system("cp -r {} {}".format(source_folder + '/*', config["general"]["output_folder"]))
+
 if __name__ == "__main__":
     parser = argparse.ArgumentParser('Run the application in a production environment.')
     parser.add_argument("--path_to_config_file", type=str, default="./config/config.yaml")
-- 
GitLab