From fa4d87d8511ed9ece61615b4c115d163b715bc6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Neveu?= Date: Sun, 8 Dec 2024 15:51:28 +0000 Subject: [PATCH] for SPECTRACTOR_FIT_TARGET_CENTROID = guess replace target_pixcoords bu guess --- 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 a0527d1b..a0a0f9f0 100644 --- a/spectractor/extractor/images.py +++ b/spectractor/extractor/images.py @@ -959,7 +959,7 @@ def find_target(image, guess=None, rotated=False, widths=[parameters.XWINDOW, pa sub_image_y0 = target_pixcoords[1] - y0 + Dy elif parameters.SPECTRACTOR_FIT_TARGET_CENTROID == "guess": Dx, Dy = widths - sub_image_subtracted, x0, y0, Dx, Dy, sub_errors = find_target_init(image=image, guess=target_pixcoords, + sub_image_subtracted, x0, y0, Dx, Dy, sub_errors = find_target_init(image=image, guess=guess, rotated=rotated, widths=(Dx, Dy)) theX, theY = guess sub_image_x0 = theX - x0 + Dx