UCL / rsd-engineeringcourse

Course materials for Research Software Engineering course.
http://github-pages.ucl.ac.uk/rsd-engineeringcourse/
Other
108 stars 98 forks source link

Numpy deprecated API #198

Open ageorgou opened 2 years ago

ageorgou commented 2 years ago

When building the Cython page:

[NbConvertApp] Converting notebook ch08performance/040cython.ipynb to notebook
[NbConvertApp] Executing notebook with kernel: python3
In file included from /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1969,
                 from /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /home/runner/.cache/ipython/cython/_cython_magic_bd46e12355fd15b638a44f492ef9dee4.c:643:
/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~

Haven't checked whether we actually call something deprecated, or whether it's to do with numpy or Cython versions.