Skip to content
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

numpy: replace remaining deprecated symbols #250

Open
jhunkeler opened this issue Feb 20, 2025 · 0 comments
Open

numpy: replace remaining deprecated symbols #250

jhunkeler opened this issue Feb 20, 2025 · 0 comments

Comments

@jhunkeler
Copy link
Contributor

calcos/src/ccos.c has deprecated symbol 'NPY_IN_ARRAY':
    Line 362: NPY_IN_ARRAY);
    Line 365: NPY_IN_ARRAY);
    Line 369: NPY_IN_ARRAY);
    Line 372: NPY_IN_ARRAY);
    Line 386: NPY_IN_ARRAY);
    Line 394: NPY_IN_ARRAY);
    Line 543: lx = (PyArrayObject *)PyArray_FROM_OTF(olx, NPY_INT32, NPY_IN_ARRAY);
    Line 544: ly = (PyArrayObject *)PyArray_FROM_OTF(oly, NPY_INT32, NPY_IN_ARRAY);
    Line 545: ux = (PyArrayObject *)PyArray_FROM_OTF(oux, NPY_INT32, NPY_IN_ARRAY);
    Line 546: uy = (PyArrayObject *)PyArray_FROM_OTF(ouy, NPY_INT32, NPY_IN_ARRAY);
    Line 548: NPY_IN_ARRAY);
    Line 662: lx = (PyArrayObject *)PyArray_FROM_OTF(olx, NPY_INT32, NPY_IN_ARRAY);
    Line 663: ly = (PyArrayObject *)PyArray_FROM_OTF(oly, NPY_INT32, NPY_IN_ARRAY);
    Line 664: dx = (PyArrayObject *)PyArray_FROM_OTF(odx, NPY_INT32, NPY_IN_ARRAY);
    Line 665: dy = (PyArrayObject *)PyArray_FROM_OTF(ody, NPY_INT32, NPY_IN_ARRAY);
    Line 667: NPY_IN_ARRAY);
    Line 673: NPY_IN_ARRAY);
    Line 676: NPY_IN_ARRAY);
    Line 680: NPY_IN_ARRAY);
    Line 683: NPY_IN_ARRAY);
    Line 814: NPY_IN_ARRAY);
    Line 903: NPY_IN_ARRAY);
    Line 906: NPY_IN_ARRAY);
    Line 910: NPY_IN_ARRAY);
    Line 913: NPY_IN_ARRAY);
    Line 918: NPY_IN_ARRAY);
    Line 1015: NPY_IN_ARRAY);
    Line 1187: NPY_IN_ARRAY);
    Line 1190: NPY_IN_ARRAY);
    Line 1378: NPY_IN_ARRAY);
    Line 1548: NPY_IN_ARRAY);
    Line 1551: NPY_IN_ARRAY);
    Line 1557: NPY_IN_ARRAY);
    Line 1560: NPY_IN_ARRAY);
    Line 1752: NPY_IN_ARRAY);
    Line 1901: NPY_FLOAT32, NPY_IN_ARRAY);
    Line 1903: NPY_FLOAT64, NPY_IN_ARRAY);
    Line 1905: NPY_FLOAT64, NPY_IN_ARRAY);
    Line 2187: NPY_IN_ARRAY);
    Line 2189: NPY_IN_ARRAY);
    Line 2294: NPY_IN_ARRAY);
    Line 2296: NPY_IN_ARRAY);
    Line 2298: NPY_IN_ARRAY);
    Line 2417: NPY_IN_ARRAY);
    Line 2419: NPY_IN_ARRAY);
    Line 2421: NPY_IN_ARRAY);
    Line 2425: NPY_IN_ARRAY);
    Line 2427: NPY_IN_ARRAY);
    Line 2576: NPY_IN_ARRAY);
    Line 2578: NPY_IN_ARRAY);
    Line 2580: NPY_IN_ARRAY);
    Line 2582: NPY_IN_ARRAY);
    Line 2699: NPY_IN_ARRAY);
    Line 2701: NPY_IN_ARRAY);
    Line 2703: NPY_IN_ARRAY);
    Line 2842: NPY_IN_ARRAY);
    Line 3009: NPY_IN_ARRAY);
    Line 3012: NPY_IN_ARRAY);
    Line 3014: dq = (PyArrayObject *)PyArray_FROM_OTF(odq, NPY_INT16, NPY_IN_ARRAY);
    Line 3016: NPY_IN_ARRAY);
    Line 3018: NPY_IN_ARRAY);
    Line 3178: NPY_IN_ARRAY);
    Line 3182: NPY_IN_ARRAY);
    Line 3184: NPY_IN_ARRAY);
    Line 3188: NPY_IN_ARRAY);
    Line 3427: NPY_IN_ARRAY);
    Line 3428: dq = (PyArrayObject *)PyArray_FROM_OTF(odq, NPY_INT16, NPY_IN_ARRAY);
    Line 3539: NPY_IN_ARRAY);
    Line 3542: NPY_IN_ARRAY);
    Line 3546: NPY_IN_ARRAY);
    Line 3549: NPY_IN_ARRAY);
    Line 3563: NPY_IN_ARRAY);
    Line 3571: NPY_IN_ARRAY);
    Line 3723: NPY_IN_ARRAY);
    Line 3726: NPY_IN_ARRAY);
    Line 3730: NPY_IN_ARRAY);
    Line 3733: NPY_IN_ARRAY);
    Line 3735: dq = (PyArrayObject *)PyArray_FROM_OTF(odq, NPY_INT16, NPY_IN_ARRAY);
    Line 3849: x = (PyArrayObject *)PyArray_FROM_OTF(ox, NPY_FLOAT32, NPY_IN_ARRAY);
    Line 3850: y = (PyArrayObject *)PyArray_FROM_OTF(oy, NPY_FLOAT32, NPY_IN_ARRAY);
    Line 3853: NPY_IN_ARRAY);
    Line 3854: pha = (PyArrayObject *)PyArray_FROM_OTF(opha, NPY_INT16, NPY_IN_ARRAY);
    Line 3959: x = (PyArrayObject *)PyArray_FROM_OTF(ox, NPY_FLOAT32, NPY_IN_ARRAY);
    Line 3960: y = (PyArrayObject *)PyArray_FROM_OTF(oy, NPY_FLOAT32, NPY_IN_ARRAY);
    Line 3963: NPY_IN_ARRAY);
    Line 4040: NPY_FLOAT32, NPY_IN_ARRAY);
    Replace with: NPY_ARRAY_IN_ARRAY

calcos/src/ccos.c has deprecated symbol 'NPY_INOUT_ARRAY':
    Line 2300: NPY_INOUT_ARRAY);
    Line 2423: NPY_INOUT_ARRAY);
    Line 2574: NPY_INOUT_ARRAY);
    Line 2844: NPY_INOUT_ARRAY);
    Line 2846: NPY_INOUT_ARRAY);
    Line 3020: NPY_INOUT_ARRAY);
    Line 3022: NPY_INOUT_ARRAY);
    Line 3180: NPY_INOUT_ARRAY);
    Line 3186: NPY_INOUT_ARRAY);
    Line 3555: NPY_INOUT_ARRAY);
    Line 3845: NPY_INOUT_ARRAY);
    Line 3955: NPY_INOUT_ARRAY);
    Line 4042: NPY_FLOAT32, NPY_INOUT_ARRAY);
    Replace with: NPY_ARRAY_INOUT_ARRAY

Detection script: https://gist.github.com/jhunkeler/37df53a83ed152086b3a84aa75cf214c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant