[Numpy-discussion] recommendation for saving data

2011-07-31 Thread Brian Blais
g into one file. It'd also be nice if it were cross-platform, and I could depend on the files being readable into the future for a while. Are there any good standards for this? What do you use for saving scientific data? thank you, Brian Blais

Re: [Numpy-discussion] memory leak?

2010-05-14 Thread Brian Blais
On May 14, 2010, at 16:03 , josef.p...@gmail.com wrote: > On Fri, May 14, 2010 at 3:26 PM, wrote: >> On Fri, May 14, 2010 at 2:43 PM, Brian Blais >> wrote: >>> Hello, >>> >>> I have the following code, where I noticed a memory leak with +=, >

[Numpy-discussion] memory leak?

2010-05-14 Thread Brian Blais
, but it also causes memory build-up in 2.6 with numpy 1.4.0, as distributed by the Enthought Python Distribution. It's easy to work around, but could cause someone some problems. Anyone else get this? bb -- Brian Blais bbl...@bryant.edu http://web.bryan

[Numpy-discussion] vectorizing

2009-06-05 Thread Brian Blais
lever way to do this? I could write a quick Cython solution, but I wanted to keep this as an all-numpy implementation if I can. thanks, Brian Blais -- Brian Blais bbl...@bryant.edu http://web.bry

Re: [Numpy-discussion] xml-rpc with numpy arrays

2008-10-01 Thread Brian Blais
On Sep 30, 2008, at 23:16 , Lisandro Dalcin wrote: On Tue, Sep 30, 2008 at 9:27 PM, Brian Blais <[EMAIL PROTECTED]> thanks for all of the help. My initial solution is to pickle my object, with the text-based version of pickle, and send it across rpc. I do this because the actual t

Re: [Numpy-discussion] xml-rpc with numpy arrays

2008-09-30 Thread Brian Blais
I am doing. Sebastien, why is sending python objects over the wire not so useful? is there a better way to do this sort of thing than xmlrpc? I thought it looked particularly simple (other than this pickling issue, of course. :) ). thanks, bb

[Numpy-discussion] xml-rpc with numpy arrays

2008-09-30 Thread Brian Blais
ncy of the marshal library, or perhaps I am doing something wrong. Is there a way to fix this? Is there another approach that I should be using? thanks, Brian Blais -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais _

Re: [Numpy-discussion] indexing (compared to matlab)

2008-08-19 Thread Brian Blais
line to say that the syntax a[0:3][:,4:9] gave read-only access. bb -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org

Re: [Numpy-discussion] indexing (compared to matlab)

2008-07-26 Thread Brian Blais
Notes a(1:3,5:9) a[0:3][:,4:9] rows one to three and columns five to nine of a because this example gives a read-only submatrix. I looked there first to get an answer, and it wasn't forthcoming. thanks for the tip! bb -- Brian Blais [EMAIL PROTECTED]

[Numpy-discussion] indexing (compared to matlab)

2008-07-26 Thread Brian Blais
thanks, Brian Blais -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] question about optimizing

2008-05-17 Thread Brian Blais
array, although I am not sure what a convenient alternative would be. bb -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/lis

[Numpy-discussion] question about optimizing

2008-05-16 Thread Brian Blais
what I am doing below? I tried to follow code I found online, but the examples of this are few and far between. thanks you for any help! Brian Blais -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais from numpy import ndarray,prod,array class MyObject(o

Re: [Numpy-discussion] load movie frames in python?

2008-01-30 Thread Brian Blais
umpy.uint8) a.shape = (sw, sh, 4) a = a[:,:,0:3] #drop alpha channel but when I do it (see code below) the image is clearly munged, so I think the decoding is not quite right. any ideas? thanks, Brian Blais -- Brian Blais [EMAIL PROTECTED] http://web

Re: [Numpy-discussion] load movie frames in python?

2008-01-29 Thread Brian Blais
e out how to do the conversion. bb -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] load movie frames in python?

2008-01-29 Thread Brian Blais
convenient would be avi, mov, and flv (for youtube videos). thanks, Brian Blais -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais ___ Numpy-discussion mailing list Numpy-discussion@scip

[Numpy-discussion] weird numpy/pickle problem

2007-11-02 Thread Brian Blais
ers give a hardware error and a crash! I boiled it down to the code below. Can anyone reproduce (or not) this error? thanks, bb -- Brian Blais [EMAIL PROTECTED] http://web.bryant.e

Re: [Numpy-discussion] matlab vs. python question

2007-04-25 Thread Brian Blais
Christopher Barker wrote: > Sturla Molden wrote: >> It is >> also easier to write C or Fortran extensions for Matlab than for Python. > > Really? I"m not so sure about that -- I found mex file writing pretty > painful. > > With weave, boost, pyrex, swig, f2py, etc, the hardest thing about > wr

[Numpy-discussion] concatenating 1-D arrays to 2D

2007-03-22 Thread Brian Blais
, -6], [ 5, -5], [ 6, -4], [ 7, -3], [ 8, -2], [ 9, -1]]) ? I thought there would be an easier way. Did I overlook something? thanks, Brian Blais -- - [EMAIL PROT

[Numpy-discussion] correct way to specify type in array definition

2007-03-15 Thread Brian Blais
a way that is recommended? thanks, Brian Blais -- - [EMAIL PROTECTED] http://web.bryant.edu/~bblais ___ Numpy-discussion mailing list Numpy-

Re: [Numpy-discussion] classmethods for ndarray

2007-02-02 Thread Brian Blais
Travis Oliphant wrote: > Sebastian Haase wrote: > >> Travis, >> Could you explain what a possible downside of this would be !? > > I can't think of any downsides. I have to understand how class-methods > are actually implemented, though before I could comment on speed > implications of class m