From e3efd82b2c28e6bbd9c33ca13c7af12fd7dd8864 Mon Sep 17 00:00:00 2001 From: "Dorofeeva Elizaveta (EXT)" Date: Mon, 14 Jul 2025 21:25:59 +0200 Subject: [PATCH] Bugfixes, no leak visible, TODO: cleanup, wf norm, crop, maybe mask roi --- dap/algos/streakfind.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dap/algos/streakfind.py b/dap/algos/streakfind.py index 6ebcd81..0df56b3 100644 --- a/dap/algos/streakfind.py +++ b/dap/algos/streakfind.py @@ -48,7 +48,7 @@ def calc_streakfinder_analysis(results, data, pf_pixel_mask): data = cryst_data #.snr[0].copy() try: - _calc_streakfinder_analysis(results, cryst_data) + _calc_streakfinder_analysis(results, cryst_data, pf_pixel_mask) except Exception as error: # Broad exception - we don't want to break anything here results["cbd_error"] = f"Error processing CBD data:\n{error}" # print(f"Deleting cryst data;\nmem used before {virtual_memory().used // pow(2, 30)} Gb ") @@ -219,8 +219,8 @@ def _calc_streakfinder_analysis(results, snr, mask): detected_streaks = detected_streaks[streaks_mask] streak_lengths = np.sqrt( - np.pow((streak_lines[..., 2] - streak_lines[..., 0]), 2) + - np.pow((streak_lines[..., 2] - streak_lines[..., 0]), 2) + np.power((streak_lines[..., 2] - streak_lines[..., 0]), 2) + + np.power((streak_lines[..., 2] - streak_lines[..., 0]), 2) ).tolist() streak_lines = streak_lines.T