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"] = []