Skip to content

Commit

Permalink
Merge pull request #166 from LSSTDESC/165-bug-for-spectractor_fit_tar…
Browse files Browse the repository at this point in the history
…get_centroid-=-guess

DEBUG SPECTRACTOR_FIT_TARGET_CENTROID = guess
  • Loading branch information
jeremyneveu authored Dec 8, 2024
2 parents ad23bfc + fa4d87d commit 87bc447
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 87bc447

Please sign in to comment.