From b436e7154331dabd6cf08c03c2e8201e9ea8c149 Mon Sep 17 00:00:00 2001 From: Lloyd Dakin Date: Fri, 4 Oct 2024 12:12:21 -0700 Subject: [PATCH] indexing fix --- datalab/datalab_session/data_operations/normalization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalab/datalab_session/data_operations/normalization.py b/datalab/datalab_session/data_operations/normalization.py index e250f6e..803fb99 100644 --- a/datalab/datalab_session/data_operations/normalization.py +++ b/datalab/datalab_session/data_operations/normalization.py @@ -51,7 +51,7 @@ def operate(self): median = np.median(image) normalized_image = image / median - output = create_output(self.cache_key, normalized_image, index=index, comment=f'Product of Datalab Normalization on file {input[index]["basename"]}') + output = create_output(self.cache_key, normalized_image, index=index, comment=f'Product of Datalab Normalization on file {input[index-1]["basename"]}') output_files.append(output) self.set_operation_progress(0.5 + index/len(image_data_list) * 0.4)