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
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
>
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
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