[Numpy-discussion] Convert array type
Mon Oct 8 14:51:48 CDT 2007
Adam Mercer wrote:
> On 08/10/2007, Ryan May <firstname.lastname@example.org> wrote:
>> Why not use numpy.fromstring?
> because that results in the array being filled with gibberish
> values = numpy.fromstring(wavearray, dtype=float, count=-1, sep='')
Use sep=' '. As the docstring says, if sep is empty, then the string is
interpreted as binary data. If it is not empty, then the string is interpreted
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion