Skip to content

Fix centroid_symmetry results for sources near or outside the search area edge - #2487

Merged
larrybradley merged 1 commit into
astropy:mainfrom
larrybradley:centroid-symmetry-far-edge
Oct 10, 2026
Merged

larrybradley merged 1 commit into
astropy:mainfrom
larrybradley:centroid-symmetry-far-edge

Conversation

@larrybradley

Copy link
Copy Markdown
Member

centroid_symmetry returned the far edge of its search area when the source was well outside of it. It now returns the position in the search area nearest the source.

A source a fraction of a pixel inside the edge was returned on the edge, with an error of up to 0.1 pixels. The search is now repeated with a smaller step when the asymmetry is lower just inside the edge.

@larrybradley larrybradley added this to the 3.1.0 milestone Oct 10, 2026
@larrybradley
larrybradley merged commit 15b5754 into astropy:main Oct 10, 2026
34 of 36 checks passed
@larrybradley
larrybradley deleted the centroid-symmetry-far-edge branch October 10, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant