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 for 14674: better check for integer pixel dimensions #14676

Closed
wants to merge 3 commits into from

Conversation

keflavich
Copy link
Contributor

@keflavich keflavich commented Apr 21, 2023

This is a minor change to fix a future deprecation warning id'd in #14764. The logic to be checked is: is the range a whole number?

xref #14674

@github-actions
Copy link

Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.

  • Do the proposed changes actually accomplish desired goals?
  • Do the proposed changes follow the Astropy coding guidelines?
  • Are tests added/updated as required? If so, do they follow the Astropy testing guidelines?
  • Are docs added/updated as required? If so, do they follow the Astropy documentation guidelines?
  • Is rebase and/or squash necessary? If so, please provide the author with appropriate instructions. Also see "When to rebase and squash commits".
  • Did the CI pass? If no, are the failures related? If you need to run daily and weekly cron jobs as part of the PR, please apply the "Extra CI" label. Codestyle issues can be fixed by the bot.
  • Is a change log needed? If yes, did the change log check pass? If no, add the "no-changelog-entry-needed" label. If this is a manual backport, use the "skip-changelog-checks" label unless special changelog handling is necessary.
  • Is this a big PR that makes a "What's new?" entry worthwhile and if so, is (1) a "what's new" entry included in this PR and (2) the "whatsnew-needed" label applied?
  • Is a milestone set? Milestone must be set but we cannot check for it on Actions; do not let the green checkmark fool you.
  • At the time of adding the milestone, if the milestone set requires a backport to release branch(es), apply the appropriate "backport-X.Y.x" label(s) before merge.

@keflavich
Copy link
Contributor Author

This isn't making tests pass because there are other parts of the codebase that cause the same deprecation warning. See https://github.com/astropy/astropy/actions/runs/4768953830/jobs/8478846216?pr=14676.

@pllim What would you like to do here? Maybe we could ignore the deprecation warning globally, but add an explicit check for it just in this module? Or would it be better just to integrate this PR into another one handling this warning everywhere?

@pllim
Copy link
Member

pllim commented Apr 21, 2023

Wow, that is crazy. Were we abusing numpy that badly?!

@pllim
Copy link
Member

pllim commented Apr 21, 2023

caused by numpy/numpy#10615

@pllim
Copy link
Member

pllim commented Apr 21, 2023

@saimn , what do you think? Should we blanket ignore or try to fix the 50+ failures before v5.3rc?

@pllim pllim changed the title Fix for 14764: better check for integer pixel dimensions Fix for 14674: better check for integer pixel dimensions Apr 21, 2023
@pllim pllim added this to the v5.0.7 milestone Apr 21, 2023
@pllim pllim added 💤 backport-v5.0.x on-merge: backport to v5.0.x 💤 backport-v5.2.x on-merge: backport to v5.2.x numpy-dev no-changelog-entry-needed labels Apr 21, 2023
@larrybradley
Copy link
Member

I already had a PR for this: #14671

@pllim
Copy link
Member

pllim commented Apr 21, 2023

@larrybradley , you plan to fix all of them? 👀

@larrybradley
Copy link
Member

Not today!

@saimn
Copy link
Contributor

saimn commented Apr 22, 2023

@saimn , what do you think? Should we blanket ignore or try to fix the 50+ failures before v5.3rc?

I plan to do the rc end of next week so we have a bit of time. It's not critical since it's only Numpy dev but Numpy 1.25 is expected in June I guess so we will need to fix errors soon anyway.

@pllim pllim added the 💤 backport-v5.3.x on-merge: backport to v5.3.x label Apr 24, 2023
@pllim
Copy link
Member

pllim commented Apr 24, 2023

Closing in favor of #14671

@pllim pllim closed this Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants