[Numpy-discussion] Need help extending a NumPy array in C

2022-07-08 Thread lpsmith
Hello! I am maintaining a C++ codebase with extensive ties to Python bindings (via SWIG). One of the features of the code is that we define (in C) a subclass of a NumPy Array. Everything worked until we started getting this message with numpy 1.23: RuntimeError: Object of type appears to

[Numpy-discussion] Re: Need help extending a NumPy array in C

2022-08-19 Thread lpsmith
Thanks for the information! I've had to work on other project in the meantime, but was able to get back to this again. In an effort to wrap my head around the project's code, I realized that I did not have a line like: #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION in it. So, I added the

[Numpy-discussion] Re: Need help extending a NumPy array in C

2022-09-02 Thread lpsmith
Sebastian Berg wrote: > On Fri, 2022-08-19 at 23:56 +, lpsm...@uw.edu wrote: > > Thanks for the information!  I've had to work on other project in the > > meantime, but was able to get back to this again. > > In an effort to wrap my head around the project's code, I realized > > that I did not