Re: [Numpy-discussion] Modern Fortran vs NumPy syntax

2013-02-08 Thread Gökhan Sever
Hi Ondřej, Any ideas that your manual syntax mapping would evolve to an automatic translation tool like i2py [http://code.google.com/p/i2py/] Thanks. On Thu, Feb 7, 2013 at 12:22 PM, Ondřej Čertík ondrej.cer...@gmail.comwrote: Hi, I have recently setup a page about modern Fortran:

Re: [Numpy-discussion] Type casting problems with numpy.take

2013-02-08 Thread Charles R Harris
On Fri, Feb 8, 2013 at 5:34 PM, Jaime Fernández del Río jaime.f...@gmail.com wrote: On Fri, Feb 8, 2013 at 3:54 PM, Daπid davidmen...@gmail.com wrote: TypeError: Cannot cast array data from dtype('uint16') to dtype('uint8') according to the rule 'safe'. That really makes it sound like

Re: [Numpy-discussion] Type casting problems with numpy.take

2013-02-08 Thread Jaime Fernández del Río
On Fri, Feb 8, 2013 at 6:44 PM, Charles R Harris charlesr.har...@gmail.comwrote: My money is on 'five year old bug'. A bug indeed it seems to be. I have cloned the source code, and in item_selection.c, in function PyArray_TakeFrom, when 'out' is an argument in the call, the code is actually