Re: [Numpy-discussion] Convert array type

2007-10-06 Thread Adam Mercer
On 07/10/2007, Gary Ruben <[EMAIL PROTECTED]> wrote: > Try using astype. This works: > > values = array(wavearray.split()).astype(float) Thanks Gary, that does the trick. Cheers Adam ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://

Re: [Numpy-discussion] Convert array type

2007-10-06 Thread Gary Ruben
Try using astype. This works: values = array(wavearray.split()).astype(float) Gary R. Adam Mercer wrote: > values = array(wavearray.split()) > > where wavearray is a string containing a series of floats separated by > white space, it appears that the individual elements of the values > array ar

[Numpy-discussion] Convert array type

2007-10-06 Thread Adam Mercer
Hi I am fairly new to using numpy and am running into a problem regarding the type of an array. The array in question is created using the following code: values = array(wavearray.split()) where wavearray is a string containing a series of floats separated by white space, it appears that the in