Re: [Numpy-discussion] save a matrix

2006-11-30 Thread Charles R Harris
On 11/30/06, Charles R Harris <[EMAIL PROTECTED]> wrote: On 11/30/06, Keith Goodman <[EMAIL PROTECTED]> wrote: > > On 11/30/06, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > > It is also possible to put the variables of interest in a dictionary, > then > > pickle the dictionary. That way y

Re: [Numpy-discussion] save a matrix

2006-11-30 Thread Charles R Harris
On 11/30/06, Keith Goodman <[EMAIL PROTECTED]> wrote: On 11/30/06, Charles R Harris <[EMAIL PROTECTED]> wrote: > > It is also possible to put the variables of interest in a dictionary, then > pickle the dictionary. That way you can also store the variable names. > > In [27]: f = open(' dump.pkl'

Re: [Numpy-discussion] save a matrix

2006-11-30 Thread Keith Goodman
On 11/30/06, Charles R Harris <[EMAIL PROTECTED]> wrote: > > It is also possible to put the variables of interest in a dictionary, then > pickle the dictionary. That way you can also store the variable names. > > In [27]: f = open(' dump.pkl','w') > > In [28]: pickle.dump( {'a':a,'b':b}, f) > > In

Re: [Numpy-discussion] save a matrix

2006-11-30 Thread Charles R Harris
On 11/30/06, Charles R Harris <[EMAIL PROTECTED]> wrote: On 11/30/06, Keith Goodman <[EMAIL PROTECTED]> wrote: > > What's a good way to save matrix objects to file for later use? I just > need something quick for debugging. > > I saw two suggestions on this list from Francesc Altet (2006-05-22

Re: [Numpy-discussion] save a matrix

2006-11-30 Thread Keith Goodman
On 11/30/06, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > On 11/30/06, Keith Goodman <[EMAIL PROTECTED]> wrote: > > What's a good way to save matrix objects to file for later use? I just > > need something quick for debugging. > > > > I saw two suggestions on this list from Francesc Altet (200

Re: [Numpy-discussion] save a matrix

2006-11-30 Thread Charles R Harris
On 11/30/06, Keith Goodman <[EMAIL PROTECTED]> wrote: What's a good way to save matrix objects to file for later use? I just need something quick for debugging. I saw two suggestions on this list from Francesc Altet (2006-05-22): 1. Use tofile and fromfile and save the meta data yourself. 2.

[Numpy-discussion] save a matrix

2006-11-30 Thread Keith Goodman
What's a good way to save matrix objects to file for later use? I just need something quick for debugging. I saw two suggestions on this list from Francesc Altet (2006-05-22): 1. Use tofile and fromfile and save the meta data yourself. 2. pytables Any suggestions for #3? If I do #1, how would