From 590179f47e170f34db58c67a9b1d56f1a23db439 Mon Sep 17 00:00:00 2001 From: Eddie Schlafly Date: Thu, 29 Aug 2024 09:10:46 -0400 Subject: [PATCH] Only delete files with outlier_suffix at the end, rather than all suffix files. --- romancal/outlier_detection/outlier_detection_step.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/romancal/outlier_detection/outlier_detection_step.py b/romancal/outlier_detection/outlier_detection_step.py index 1441bc903..332791e4b 100644 --- a/romancal/outlier_detection/outlier_detection_step.py +++ b/romancal/outlier_detection/outlier_detection_step.py @@ -152,7 +152,7 @@ def process(self, input_models): intermediate_files_suffixes = ( "*blot.asdf", "*median.asdf", - f'*{pars.get("resample_suffix")}*.asdf', + f'*outlier_{pars.get("resample_suffix")}.asdf', ) for current_path in intermediate_files_paths: for suffix in intermediate_files_suffixes: