Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix initial Gaussian theta units for centroid_2dg #2013

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

larrybradley
Copy link
Member

This PR fixed an issue with the initial Gaussian theta units in centroid_2dg. The Gaussian was given theta as a unitless value in degrees. Without units, the Gaussian expects the value to be radians. This PR updates the initialization to use the Quantity angle value.

Many thanks to @Lyalpha for reporting this issue in #2012.

Fixes #2012.

@larrybradley larrybradley merged commit 838fc8d into astropy:main Feb 20, 2025
23 checks passed
@larrybradley larrybradley deleted the fix-centroid_2dg branch February 20, 2025 04:28
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.

Mismatch in theta units used during centroid_2dg astropy model initialisation
1 participant