Skip to content

Fix isophote "mean of empty slice" warnings#2283

Merged
larrybradley merged 3 commits into
astropy:mainfrom
larrybradley:isophote-mean-of-empty-slice
May 29, 2026
Merged

Fix isophote "mean of empty slice" warnings#2283
larrybradley merged 3 commits into
astropy:mainfrom
larrybradley:isophote-mean-of-empty-slice

Conversation

@larrybradley
Copy link
Copy Markdown
Member

This PR fixes spurious NumPy "Mean of empty slice" and related warnings raised during isophote fitting when a trial or failed isophote has an elliptical path that falls entirely (or largely) outside the image.

It also fixes a fragile harmonics test.

@larrybradley larrybradley force-pushed the isophote-mean-of-empty-slice branch from 88d77c4 to 1e81334 Compare May 29, 2026 18:04
@larrybradley larrybradley merged commit 2e52cd1 into astropy:main May 29, 2026
28 checks passed
@larrybradley larrybradley deleted the isophote-mean-of-empty-slice branch May 29, 2026 18:11
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