Re: export an array of floats to python

2007-02-22 Thread Peter Wuertz
Thank you! Thats the complete solution *g* -- http://mail.python.org/mailman/listinfo/python-list

Re: export an array of floats to python

2007-02-22 Thread sturlamolden
On Feb 22, 7:36 pm, "sturlamolden" <[EMAIL PROTECTED]> wrote: > npy_int dim = {480, 640}; /* whatever the size of your data, in C- > order */ oops... npy_int dim[] = {480, 640}; -- http://mail.python.org/mailman/listinfo/python-list

Re: export an array of floats to python

2007-02-22 Thread sturlamolden
On Feb 22, 5:40 pm, Peter Wuertz <[EMAIL PROTECTED]> wrote: > 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. > > My question is, how to make python read from a C arra

Re: export an array of floats to python

2007-02-22 Thread Peter Wuertz
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 u

Re: export an array of floats to python

2007-02-22 Thread Larry Bates
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. > > My question is, how to make python read from a C array? By reading the > documentati

Re: export an array of floats to python

2007-02-22 Thread Travis Oliphant
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? > My question is, how to make python read fr

export an array of floats to python

2007-02-22 Thread Peter Wuertz
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. My question is, how to make python read from a C array? By reading the documentation, one could get the impression