Hey,

I am trying to improve the Lilv <http://drobilla.net/software/lilv/> Python
bindings to include numpy.i to allow for creation and verification of audio
test buffers using NumPy.

I am just trying to get *something* working at the moment so I am tring to
wrap a test function.

static inline void
lilv_test(float* data_location){}

and I have in lilv.i:

%apply (float* INPLACE_ARRAY1) {(float* data_location)};

This doesn’t produce any warnings or anything but when I try and use it
from Python I get:

TypeError: in method 'lilv_test', argument 1 of type 'float *'

What does work is if I have:

lilv_test(float* data_location, int n){}

and

%apply (float* INPLACE_ARRAY1, int DIM1) {(float* data_location, int n)};

but this doesn’t fit very well with the functions I eventually want to
wrap, as they don’t have a dimension argument.

Is it not possible to use INPLACE_ARRAY1 without a dimension?

Thanks for any help,

Kaspar
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to