From 2a12864feb7458a236fece3ffda2dcf0f44c9b4b Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Thu, 8 Aug 2024 16:38:52 +0200 Subject: [PATCH] removed line that does nothing (nan has no sign, nan always compares to False -> this never overwrites any element) --- dap/algos/forcesend.py | 1 - 1 file changed, 1 deletion(-) diff --git a/dap/algos/forcesend.py b/dap/algos/forcesend.py index 309a2f7..ace85ad 100644 --- a/dap/algos/forcesend.py +++ b/dap/algos/forcesend.py @@ -30,7 +30,6 @@ def calc_force_send(results, data, pixel_mask_pf, image, data_summed, n_aggregat data += data_summed n_aggregated_images += 1 data_summed = data.copy() - data_summed[data == -np.nan] = -np.nan #TODO: this does nothing results["aggregated_images"] = n_aggregated_images results["worker"] = 1 #TODO: keep this for backwards compatibility?