On 10/8/07, Adam Mercer <[EMAIL PROTECTED]> wrote: > > On 08/10/2007, Ryan May <[EMAIL PROTECTED]> 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='') > print values
You need to use values = numpy.fromstring(wavearray, dtype=float, count=-1, sep=' ') Note that sep is a blank (whitespace). This will convert ascii strings. Chuck
_______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
