From 58e6d9ca47dbf1c09018ec533aa11acad76985eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Traizet?= Date: Fri, 20 Sep 2024 18:07:12 +0200 Subject: [PATCH] refactor: clean tile processing in depth_maps_to_dsm --- .../depth_maps_to_dsm/depth_maps_to_dsm_pipeline.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cars/pipelines/depth_maps_to_dsm/depth_maps_to_dsm_pipeline.py b/cars/pipelines/depth_maps_to_dsm/depth_maps_to_dsm_pipeline.py index 4d283932..f4f8113c 100644 --- a/cars/pipelines/depth_maps_to_dsm/depth_maps_to_dsm_pipeline.py +++ b/cars/pipelines/depth_maps_to_dsm/depth_maps_to_dsm_pipeline.py @@ -618,3 +618,12 @@ def run(self): color_dtype=color_type, dump_dir=rasterization_dump_dir, ) + + # Cleaning: delete everything in tile_processing if + # save_intermediate_data is not activated + if not self.advanced[adv_cst.SAVE_INTERMEDIATE_DATA]: + cars_orchestrator.add_to_clean( + os.path.join( + cars_orchestrator.out_dir, "dump_dir", "tile_processing" + ) + )