export an array of floats to python
Peter Wuertz
pwuertz at students.uni-mainz.de
Thu Feb 22 12:57:04 EST 2007
Travis Oliphant wrote:
> Peter Wuertz wrote:
>> Hi,
>>
>> I'm writing a C module for python, that accesses a special usb camera.
>> This module is supposed to provide python with data (alot of data).
>> Then SciPy is used to fit the data.
>>
>
> Which version of scipy are you using?
I'm using ubuntu edgy eft, which ships scipy 0.5.2
> How about creating an array directly from your float array using
> PyArray_SimpleNewFromData (the NumPy C-API) or PyArray_FromDimsAndData
> (the Numeric C-API).
Cool thanks, thats exactly what I needed!
More information about the Python-list
mailing list