Discussion:
[Numpy-discussion] Aternative to PyArray_SetBaseObject in NumPy 1.6?
Sturla Molden
2015-06-15 02:33:15 UTC
Permalink
What would be the best alternative to PyArray_SetBaseObject in NumPy 1.6?

Purpose: Keep alive an object owning data passed to
PyArray_SimpleNewFromData.


Sturla
Eric Moore
2015-06-16 14:53:23 UTC
Permalink
You have to do it by hand in numpy 1.6. For example see
https://github.com/scipy/scipy/blob/master/scipy/signal/lfilter.c.src#L285-L292

-Eric
Post by Sturla Molden
What would be the best alternative to PyArray_SetBaseObject in NumPy 1.6?
Purpose: Keep alive an object owning data passed to
PyArray_SimpleNewFromData.
Sturla
_______________________________________________
NumPy-Discussion mailing list
http://mail.scipy.org/mailman/listinfo/numpy-discussion
Sturla Molden
2015-06-16 20:35:03 UTC
Permalink
Post by Eric Moore
You have to do it by hand in numpy 1.6. For example see
<a
href="https://github.com/scipy/scipy/blob/master/scipy/signal/lfilter.c.src#L285-L292">https://github.com/scipy/scipy/blob/master/scipy/signal/lfilter.c.src#L285-L292</a>
Thank you :)


Sturla

Loading...