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

Handle non-finite position in overlap_slices #9648

Merged
merged 3 commits into from Nov 26, 2019

Conversation

larrybradley
Copy link
Member

This PR raises a ValueError with an informative error message if the overlap_slices position contains any non-finite values (NaN or inf).

Fixes #9637.

@pllim
Copy link
Member

pllim commented Nov 21, 2019

@bsipocz , feel free to re-milestone as appropriate. Thanks, everyone!

Copy link
Contributor

@mhvk mhvk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks all OK to me - simple sanity check of the input, good tests.

@mhvk
Copy link
Contributor

mhvk commented Nov 26, 2019

I'll merge to get this off the 4.0 list!

@mhvk mhvk merged commit de2be96 into astropy:master Nov 26, 2019
@larrybradley larrybradley deleted the overlap-nan branch November 26, 2019 13:56
bsipocz pushed a commit that referenced this pull request Dec 1, 2019
Handle non-finite position in overlap_slices
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.

Unexpected ValueError using Cutout2D
3 participants