From 8c11dd8f52bf86e9b2e171577024390ee0fe2bf9 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Fri, 2 Aug 2024 19:01:04 +0200 Subject: [PATCH] get_saturated_pixels does not change data in place, hence no copy is needed; use kwargs defaults --- dap/worker.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dap/worker.py b/dap/worker.py index b672838..7aa6f1f 100644 --- a/dap/worker.py +++ b/dap/worker.py @@ -152,8 +152,7 @@ def work(backend_address, accumulator_host, accumulator_port, visualisation_host pixel_mask_pf = None if pixel_mask_corrected is not None: - data_s = image.copy() - saturated_pixels_coordinates = ju_stream_adapter.handler.get_saturated_pixels(data_s, mask=True, geometry=True, gap_pixels=True, double_pixels=double_pixels) + saturated_pixels_coordinates = ju_stream_adapter.handler.get_saturated_pixels(image, double_pixels=double_pixels) results["saturated_pixels"] = len(saturated_pixels_coordinates[0]) results["saturated_pixels_x"] = saturated_pixels_coordinates[1].tolist() results["saturated_pixels_y"] = saturated_pixels_coordinates[0].tolist()