Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Sturla Molden
On 28/02/15 00:04, Robert Kern wrote: > When plt.imshow() is given floating point RGB images, it assumes that > each channel is normalized to 1. You are mixing a 0..255 image with a > 0..1 image. Divide `lenna` by 255.0 before you stack it with `_dct`. Or > multiply `_dct` by 255 and cast it to ui

Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Robert Kern
On Fri, Feb 27, 2015 at 10:33 PM, Sturla Molden wrote: > > Somewhere... But where is it? > > NumPy, SciPy, Matplotlib, Cython or ipython? > > I am suspecting ipython, but proving it is hard... > > http://nbviewer.ipython.org/urls/dl.dropboxusercontent.com/u/12464039/lenna-bug.ipynb When plt.imsho

Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Sturla Molden
On 27/02/15 23:39, Benjamin Root wrote: > Is this another white-gold vs. blue-black dress color thing? No. It is what you said in you next post. I hate that dress image. The first time I looked at it it was white and gold, then it became blue and black, and the third time it was grayish blue an

Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Sturla Molden
On 27/02/15 23:40, Benjamin Root wrote: > oh... I think I see what you are referring to. The second image should > have the regular lenna image, not the negative? Yeah. The ndarray references are getting messed up. It is actually quite serious. Sturla > > Ben Root > > On Fri, Feb 27, 2015 at

Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Benjamin Root
oh... I think I see what you are referring to. The second image should have the regular lenna image, not the negative? Ben Root On Fri, Feb 27, 2015 at 5:39 PM, Benjamin Root wrote: > It is Friday evening here... I must be really dense. What bug are we > looking at? Is this another white-gold

Re: [Numpy-discussion] So I found a bug...

2015-02-27 Thread Benjamin Root
It is Friday evening here... I must be really dense. What bug are we looking at? Is this another white-gold vs. blue-black dress color thing? Ben Root On Fri, Feb 27, 2015 at 5:33 PM, Sturla Molden wrote: > Somewhere... But where is it? > > NumPy, SciPy, Matplotlib, Cython or ipython? > > I am

[Numpy-discussion] So I found a bug...

2015-02-27 Thread Sturla Molden
Somewhere... But where is it? NumPy, SciPy, Matplotlib, Cython or ipython? I am suspecting ipython, but proving it is hard... http://nbviewer.ipython.org/urls/dl.dropboxusercontent.com/u/12464039/lenna-bug.ipynb Sturla ___ NumPy-Discussion mailing l

Re: [Numpy-discussion] So...

2011-03-25 Thread Pauli Virtanen
Fri, 25 Mar 2011 13:40:54 +0100, Sturla Molden wrote: > Den 25.03.2011 13:33, skrev Pauli Virtanen: >> That npy_intp will not be redefined as ssize_t does not mean that the >> type of array indices could not be changed. > > By the way, what is the resonable array index for AMD64, where 32-bit is >

Re: [Numpy-discussion] So...

2011-03-25 Thread Sturla Molden
Den 25.03.2011 13:33, skrev Pauli Virtanen: > That npy_intp will not be redefined as ssize_t does not mean that the > type of array indices could not be changed. By the way, what is the resonable array index for AMD64, where 32-bit is the native offset size but size_t is 64 bit? Sturla _

Re: [Numpy-discussion] So...

2011-03-25 Thread Pauli Virtanen
Fri, 25 Mar 2011 13:23:11 +0100, Sturla Molden wrote: > FFTs should keep the GIL locked, because sharing the interpreter is not > funny. > Array indices should be sizeof(void*), because following C standard and > Python C API is lame. > Median should be calculated in O(n log n) instead of O(n) time

[Numpy-discussion] So...

2011-03-25 Thread Sturla Molden
FFTs should keep the GIL locked, because sharing the interpreter is not funny. Array indices should be sizeof(void*), because following C standard and Python C API is lame. Median should be calculated in O(n log n) instead of O(n) time, because redundant sorting is gymnatics for the CPU. But at