2009/7/8 Gael Varoquaux :
> On Wed, Jul 08, 2009 at 12:48:17PM -0700, Matthew Brett wrote:
>> > Yup. It's not even very idiomatic Python. readlines() is probably a
>> > bad idea unless your file is trivial length, and even ignoring
>> > numpy.loadtxt(), all of this could be considerably simplified
On Wed, Jul 08, 2009 at 12:48:17PM -0700, Matthew Brett wrote:
> > Yup. It's not even very idiomatic Python. readlines() is probably a
> > bad idea unless your file is trivial length, and even ignoring
> > numpy.loadtxt(), all of this could be considerably simplified with the
> > built-in csv modul
Hi,
> Yup. It's not even very idiomatic Python. readlines() is probably a
> bad idea unless your file is trivial length, and even ignoring
> numpy.loadtxt(), all of this could be considerably simplified with the
> built-in csv module.
or a 1-liner with scipy.io.loadmat ...
Best,
Matthew
___
On 8-Jul-09, at 4:19 AM, Pauli Virtanen wrote:
> Tue, 07 Jul 2009 21:30:06 -0500, alan kirjoitti:
>> Mathematica vs Matlab vs Python
>>
>> http://www.larssono.com/musings/matmatpy/index.html
>
> The Python code there is not very idiomatic Numpy code. It's written
> for
> Numeric, and fancy index
Tue, 07 Jul 2009 21:30:06 -0500, alan kirjoitti:
> Mathematica vs Matlab vs Python
>
> http://www.larssono.com/musings/matmatpy/index.html
The Python code there is not very idiomatic Numpy code. It's written for
Numeric, and fancy indexing etc. are not used.
Seems like the author also left it a
Mathematica vs Matlab vs Python
http://www.larssono.com/musings/matmatpy/index.html
--
---
| Alan K. Jackson| To see a World in a Grain of Sand |
| a...@ajackson.org | And a Heaven in a Wild Flower,