removed unused (but checked?!) pixel_mask

This commit is contained in:
2025-10-25 21:17:22 +02:00
parent cc94a2b463
commit c75158aa27
2 changed files with 2 additions and 6 deletions

View File

@@ -1,11 +1,7 @@
import numpy as np
def calc_roi(results, data, pixel_mask_pf):
#TODO: why is this checked here?
if pixel_mask_pf is None:
return
def calc_roi(results, data):
for k in ("roi_x1", "roi_x2", "roi_y1", "roi_y2"):
if k not in results:
return

View File

@@ -120,7 +120,7 @@ def work(backend_addr, accumulator_addr, visualisation_addr, fn_config, skip_fra
calc_mask_pixels(pfimage, pixel_mask) # changes pfimage in place
calc_apply_threshold(results, pfimage) # changes pfimage in place
calc_roi(results, pfimage, pixel_mask)
calc_roi(results, pfimage)
calc_spi_analysis(results, pfimage)
calc_peakfinder_analysis(results, pfimage, pixel_mask)