Re: preallocate list
F. Petitjean wrote:[color=blue]
> Le Wed, 13 Apr 2005 16:46:53 +0100, Jim a écrit :
>[color=green]
>>What I really want is a Numeric array but I don't think Numeric supports
>>importing files.[/color]
>
> Numeric arrays can be serialized from/to files through pickles :
> import Numeric as N
> help(N.load)
> help(N.dump)
> (and it is space efficient)
>[color=green]
>>Jim[/color][/color]
Yeah thanks. I'm generating them using Matlab though so I'd have to get
the format the same. I use Matlab because I get the results I want. When
I get to know Python + scipy etc. better I might remove that step.
Thanks again
Jim
F. Petitjean wrote:[color=blue]
> Le Wed, 13 Apr 2005 16:46:53 +0100, Jim a écrit :
>[color=green]
>>What I really want is a Numeric array but I don't think Numeric supports
>>importing files.[/color]
>
> Numeric arrays can be serialized from/to files through pickles :
> import Numeric as N
> help(N.load)
> help(N.dump)
> (and it is space efficient)
>[color=green]
>>Jim[/color][/color]
Yeah thanks. I'm generating them using Matlab though so I'd have to get
the format the same. I use Matlab because I get the results I want. When
I get to know Python + scipy etc. better I might remove that step.
Thanks again
Jim
Comment