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
Bugfix for bitmasks passed to nddata #14995
Conversation
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.
|
Thanks. It will take us a little while to run our tests on this (probably some time tomorrow, Wed). |
This looks good to me; @bmorris3 can you please add a changelog entry? Let's wait until @jehturner reports back on his tests before merging. |
Unfortunately there's a coincidental problem with our tests that is preventing them from running and will take a bit of unplanned maintenance, so we might not be able to confirm that this looks good today. |
@jehturner Do you think you'll have a chance to check by the end of the week? |
I hope so, yes. |
@jehturner Any results from your testing? |
Hello. I finally managed to fix our tests late on Friday night, but I tried testing this PR at the weekend and the AstroPy build failed, so I'll need to look at that first. |
This has passed our testing with DRAGONS 3.1, apart from 1 irrelevant test. Thanks a lot! |
BTW, one of several problems that I had when trying to install this branch was that |
I believe the issue here is that either you or @bmorris3 need to synchronize your tags with the main astropy repository. |
I just took a look, @bmorris3 the version issue will be resolved if you pull the astropy tags into your fork. Assuming you have added the git fetch upstream --tags
git push origin --tags This should resolve this issue in the future. |
Thanks for confirming that, @WilliamJamieson (it sounds familiar now that you mention it). In any case, I was able to work around the problem with a hack for testing the current PR. |
Thanks @WilliamJamieson, should be all fixed now. Good for merge? |
The tag problem should be gone now if you pull astropy dev from this repo instead of PR branch. But if it still a problem, please let us know! |
…995-on-v5.3.x Backport PR #14995 on branch v5.3.x (Bugfix for bitmasks passed to nddata)
Thanks for the quick fix @bmorris3, and thanks to @KathleenLabrie for reporting the bug! |
Description
This pull request revises one line changed in PR #14175, which gave rise to Issue #14978. I've added a test to ensure that we will notice if this happens again in the future.
Discussion
This PR adds the first test for bitmask support in ndarithmetic. We may want to discuss if in the docs and tests we should explicitly claim support for bitmasks in the
NDData.mask
attribute (@eteq), as well as whether astropy/astropy-APEs#14 should be revived (@perrygreenfield, @mwcraig, @jehturner @crawfordsm @MSeifert04, @parejkoj).Fixes #14978.
cc @KathleenLabrie @chris-simpson