Extracting matrix from a text file

2009-08-11 Thread telek...@hotmail.com
Hello to all!! I am new in python, and I am running it on Mac with Smultron editor. I need to read a textfile that includes numbers (in a matrix form), indexes, and strings, like this: Marsyas-kea distance matrix for MIREX 2007 Audio Similarity Exchange Q/R1 2

Re: Extracting matrix from a text file

2009-08-11 Thread Mark Lawrence
telek...@hotmail.com wrote: Hello to all!! I am new in python, and I am running it on Mac with Smultron editor. I need to read a textfile that includes numbers (in a matrix form), indexes, and strings, like this: Marsyas-kea distance matrix for MIREX 2007 Audio Similarity Exchange Q/R1

Re: Extracting matrix from a text file

2009-08-11 Thread Colin J. Williams
telek...@hotmail.com wrote: Hello to all!! I am new in python, and I am running it on Mac with Smultron editor. I need to read a textfile that includes numbers (in a matrix form), indexes, and strings, like this: Marsyas-kea distance matrix for MIREX 2007 Audio Similarity Exchange Q/R1

Extracting matrix from a text file

2009-08-07 Thread bbarbero
Hello to all!! I am new in python, and I am running it on Mac with Smultron editor. I need to read a textfile that includes numbers (in a matrix form), indexes, and strings, like this: Marsyas-kea distance matrix for MIREX 2007 Audio Similarity Exchange Q/R 1 2 3 4

Re: Extracting matrix from a text file

2009-08-07 Thread alex23
On Aug 8, 2:19 am, bbarb...@inescporto.pt wrote: I am new in python, and I am running it on Mac with Smultron editor. I   need to read a textfile that includes numbers (in a matrix form),   indexes, and strings, like this: Marsyas-kea distance matrix for MIREX 2007 Audio Similarity Exchange

Re: Extracting matrix from a text file

2009-08-07 Thread MRAB
alex23 wrote: On Aug 8, 2:19 am, bbarb...@inescporto.pt wrote: I am new in python, and I am running it on Mac with Smultron editor. I need to read a textfile that includes numbers (in a matrix form), indexes, and strings, like this: Marsyas-kea distance matrix for MIREX 2007 Audio

Re: Extracting matrix from a text file

2009-08-07 Thread alex23
MRAB pyt...@mrabarnett.plus.com wrote: Or:          columns = line.split(' ')[1 : ] Even better, well spotted. -- http://mail.python.org/mailman/listinfo/python-list