Skip to content

Commit

Permalink
for SPECTRACTOR_FIT_TARGET_CENTROID = guess replace target_pixcoords …
Browse files Browse the repository at this point in the history
…bu guess
  • Loading branch information
jeremyneveu committed Dec 8, 2024
1 parent ad23bfc commit fa4d87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectractor/extractor/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa4d87d

Please sign in to comment.