From 3c52784d489f6b14324fed82d6a966b3b3f7030e Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Tue, 30 Jul 2024 18:57:08 +0200 Subject: [PATCH] cleanup --- dap/algos/roi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dap/algos/roi.py b/dap/algos/roi.py index 580c33e..76775ec 100644 --- a/dap/algos/roi.py +++ b/dap/algos/roi.py @@ -2,12 +2,12 @@ import numpy as np def calc_roi(results, pfdata, roi_x1, roi_x2, roi_y1, roi_y2, pixel_mask_pf, threshold_value_choice): - roi_results = [0] * len(roi_x1) - roi_results_normalised = [0] * len(roi_x1) - if pixel_mask_pf is None: return + roi_results = [0] * len(roi_x1) + roi_results_normalised = [0] * len(roi_x1) + results["roi_intensities_x"] = [] results["roi_intensities_proj_x"] = []