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
Port enhancements to bitfield from stsci.tools #611
Conversation
Excellent, thanks for this @mcara! I'll take a look at it this Sunday. |
@mwcraig Thanks! You may also want to take a look at my tests https://github.com/spacetelescope/stsci.tools/blob/master/lib/stsci/tools/tests/test_bitmask.py They are somewhat different from your tests for |
@mcara -- this looks good; I'm trying (and so far failing) to restart the tests.... I thought your tests looked great! Are you suggesting we add those here too? I'm ok either way. Actually, broader question, which doesn't have to be answered here: would you be interested in migrating the bitfield stuff into |
closing/reopening to try to trigger a new build of the tests... |
With regard to tests, I suggest several things and really it is up to you (it's your package) what you choose (in no particular preference from my side):
|
@mwcraig I hope I fixed the problem in the |
The current test failure is unrelated and is due to pytest being upgraded as part of installing mpl to a version that astropy 1.0.x doesn't support. |
This PR enhances the treatment of very high bit flags in such a way that flags like
1<<63
(maximum supported byuint64
type) now work and flags larger than maximum supported bynumpy.uint64
are ignored and again allow code to work without crashing. See #610 for more details.