Avoid using deprecated NumPy APIs where possible. See #2559.
Avoid using deprecated NumPy APIs where possible.
See #2559.

scoder/cython,da-woods/cython,da-woods/cython,da-woods/cython,scoder/cython,cython/cython,cython/cython,da-woods/cython,scoder/cython,cython/cython,cython/cython,scoder/cython