From: Peter V. <ve...@em...> - 2003-05-07 11:18:17
|
In numarray 0.5, the PyArray_ContiguousFromObject() does not appear to wo= rk=20 correctly with Python scalar objects, if the requested type is not equal = to=20 the type of the object. (I believe that this function should convert the=20 input to an array of the requested type?) For instance, PyArray_ContiguousFromObject(object, tInt32, 0, 1))) works=20 correctly if object is a python integer, but not if it is a float number. Cheers, Peter --=20 Dr. Peter J. Verveer Cell Biology and Cell Biophysics Programme EMBL Meyerhofstrasse 1 D-69117 Heidelberg Germany Tel. : +49 6221 387245 Fax : +49 6221 387242 Email: Pet...@em... |