[AstroPy] Moving Ahead with Raw Image Conversion
You can get a numpy array of either integer or floats with the numpy.array() function. Here's a short example (sort-of based on your "make_image" function), using integers: import numpy, pyfits #.
You can get a numpy array of either integer or floats with the numpy.array() function. Here's a short example (sort-of based on your "make_image" function), using integers: import numpy, pyfits #.
The problem doesn't have anything to do with boost.python. The thing is in > initializing numpy API pointer specifically PyArray_API*. If you print this > pointer before creating the array, it'll turn out to be null.
[Numpy-discussion] PyArray_ContiguousFromObject & PyDECREF. Michiel Jan Laurens de Hoon mdehoon at ims.u-tokyo.ac.jp Sun Nov 30 22:13:05 EST 2003.From Chapter 13 ("C API Reference") it seems that a PyDECREF is needed in both cases.
Dear Python Users, >> I am trying to write a code for visualization (raster plots and peri-event >> time histogram) of time series electrophysiological data using numpy, scipy >> and matlplotlib in python.