[Numpy-discussion] trouble with locale in combination with numpy and pylab

2008-09-15 Thread Achim Gaedke
Hi there! Consider this python program (saved as locale_trouble.py): import numpy a=numpy.float32(1.2) print a, float(a) import gtk print a, float(a) everything is fine, if you call this program as follows: LANG="C" python locale_trouble.py 1.2 1.2004768 1.2 1.2004768 LANG="de_DE" pyth

Re: [Numpy-discussion] SegFault/double free with simple array mask operation

2007-11-17 Thread Achim Gaedke
Achim Gaedke wrote: > David Cournapeau wrote: > >> Could you open a ticket on the numpy trac system ? (I can confirm the bug) >> >> cheers, >> >> David >> >> > It is Ticket #614 . The version information in trac are outdated, I >

Re: [Numpy-discussion] SegFault/double free with simple array mask operation

2007-11-15 Thread Achim Gaedke
David Cournapeau wrote: > Achim Gaedke wrote: > >> Hello everybody! >> >> Please have a look at the program below: >> >> # start >> import numpy >> >> t_array=numpy.ones(2048, dtype=numpy.float32) >> sinc_array=numpy.array((len(t_arr

[Numpy-discussion] SegFault/double free with simple array mask operation

2007-11-14 Thread Achim Gaedke
Hello everybody! Please have a look at the program below: # start import numpy t_array=numpy.ones(2048, dtype=numpy.float32) sinc_array=numpy.array((len(t_array),),dtype=numpy.float32) sinc_array[(t_array > 0.)]=1.0 # end If you execute this program, it crashes with Segmentation Fault or *** gl