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 non-integer indexing in Numpy >= 1.12.0 #203
Comments
Comment by mperrin Very nice, thank you @kmdouglass. I have to admit I hadn't even realized numpy 1.12 was out yet. Much appreciated! I'll give this PR a day or so for code review & feedback from others here (not that it needs much) then pending that I expect this will be good to merge. |
Comment by kmdouglass You're welcome @mperrin . If there's something else that you need me to do, just let me know. |
Comment by kmdouglass Thanks for the feedback. If I understood everyone correctly I will amend this pull request by
If this all seems correct then I'll make the changes. Thanks guys! |
Comment by mperrin That all sounds correct to me. (And no need to apologize for an extra print statement - not a big deal. We all do this sort of thing; a big part of why Github is so great is that it makes this kind of code review easy and efficient. All code needs more than one pair of eyes on it!) |
Issue by kmdouglass
Saturday Feb 18, 2017 at 09:54 GMT
Originally opened as mperrin/poppy#203
As of version 1.12.0, NumPy no longer implicitly casts non-integers to integers for array indexing and instead raises an
IndexError
. See the Numpy Release Notes for details.A couple of lines in poppy_core.py and the test scripts required either explicit integer casting or integer division with the
//
operator for compatibility with NumPy >= 1.12.0.The Poppy test suite is now passing on my machine with Python 3.5.2 and 2.7.13 and Numpy 1.12.0 with these fixes. You may want to add a build with Numpy 1.12.0 to Travis to verify that things work on your end.
kmdouglass included the following code: https://github.com/mperrin/poppy/pull/203/commits
The text was updated successfully, but these errors were encountered: