From f146c283d5d8790f7f4f0aac0c571ddd5a430f12 Mon Sep 17 00:00:00 2001 From: Caden Gobat <36030084+cgobat@users.noreply.github.com> Date: Tue, 9 Jun 2026 23:03:34 -0700 Subject: [PATCH] If image is rotated, errors should be rotated too --- spectractor/extractor/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectractor/extractor/images.py b/spectractor/extractor/images.py index 425e4bdcb..1c83d6c23 100644 --- a/spectractor/extractor/images.py +++ b/spectractor/extractor/images.py @@ -1071,7 +1071,7 @@ def find_target_init(image, guess, rotated=False, widths=[parameters.XWINDOW, pa if rotated: sub_image = np.copy(image.data_rotated[subYmin:subYmax, subXmin:subXmax]) - sub_errors = np.copy(image.err[subYmin:subYmax, subXmin:subXmax]) + sub_errors = np.copy(image.err_rotated[subYmin:subYmax, subXmin:subXmax]) else: sub_image = np.copy(image.data[subYmin:subYmax, subXmin:subXmax]) sub_errors = np.copy(image.err[subYmin:subYmax, subXmin:subXmax])