[Numpy-discussion] test failure

2010-10-01 Thread John Mitchell
After spending a lot of time building 'numpy' (1.5.0) and 'scipy' (0.8.0) I ran the following tests -- per what I read somewhere: numpy.test() Out of several thousand small tests I found this one error -- perhaps its not really an error? This doesn't look serious but it can be bothersome when o

Re: [Numpy-discussion] NPZ format

2010-10-01 Thread Robert Kern
On Fri, Oct 1, 2010 at 02:13, Francesc Alted wrote: > A Thursday 30 September 2010 18:20:16 Robert Kern escrigué: >> On Wed, Sep 29, 2010 at 03:17, Francesc Alted > wrote: >> > Hi, >> > >> > I'm going to give a seminar about serialization, and I'd like to >> > describe the .npy format.  I noticed

Re: [Numpy-discussion] datarray repositories have diverged

2010-10-01 Thread Rob Speer
Oh, I'm apparently confusing people's github usernames. Sorry about that. Josh's branch (jesusabdullah/datarray) is indeed the one I branched from, not Lluis's (xscript/datarray), though I merged in changes from Lluis at one point. Does anyone know if it's possible to change the "forked from" loc

[Numpy-discussion] Return values stats.mstats.linregress

2010-10-01 Thread Gökhan Sever
Hello, mstats.linregress returns 6 values. I don't see this documented from the function docstring. I know 0.91... is r. What is masked_array return here? I[29]: stats.mstats.linregress(np.ma.hstack(all_measured[0::6]), np.ma.hstack(all_predicted[0::6])) O[29]: (2.6309756058562122, -358.84572340

Re: [Numpy-discussion] datarray repositories have diverged

2010-10-01 Thread Joshua Holbrook
One thing I'd like to throw out there is that I haven't really done anything with my branch past maybe adding a gh-pages branch, and probably won't be for a while, if at all. As it turns out, I have a hard time concentrating on the intricacies of apis. >_< --Josh (jesusabdullah :E ) On Fri, Oct

Re: [Numpy-discussion] datarray repositories have diverged

2010-10-01 Thread Fernando Perez
On Thu, Sep 30, 2010 at 9:41 AM, Rob Speer wrote: > > The way you'd usually get something merged in this kind of project is > to send a pull request to the leader using the "Pull Request" button. > But in this case, I'm basically making my pull request on the mailing > list, because it's not strai

[Numpy-discussion] [ANN] python-blosc 1.0.1, a wrapper for the Blosc compression library

2010-10-01 Thread Francesc Alted
Announcing python-blosc 1.0.1 A Python wrapper for the Blosc compression library What is it? === Blosc (http://blosc.pytables.org) is a high performance compressor optimized for bin

Re: [Numpy-discussion] constant shaded triangle mesh in mayavi2

2010-10-01 Thread Robert Kern
On Thu, Sep 30, 2010 at 23:04, Geoffrey Irving wrote: > On Fri, Oct 1, 2010 at 11:39 AM, Robert Kern wrote: >>  s = mlab.pipeline.triangular_mesh_source(x,y,z,triangles) >>  s.data.cell_data.scalars = # Your data here. >>  surf = mlab.pipeline.surface(s) >>  surf.contours.filled_contours =

Re: [Numpy-discussion] ndarray: subclassing a subclass looses custom attribute

2010-10-01 Thread Sebastian Haase
On Fri, Oct 1, 2010 at 2:20 PM, Pierre GM wrote: > > On Oct 1, 2010, at 1:03 PM, Sebastian Haase wrote: > However, I had done this before for some specific image-file-types: those would add there own attribute to ndarray array (e.g. arr.Mrc) Now if I call the new  ndarray_meta on my

Re: [Numpy-discussion] numpydoc: "Other Parameters" section

2010-10-01 Thread Pauli Virtanen
Thu, 30 Sep 2010 15:13:04 -0400, Michael Droettboom wrote: > Is the solution as simple as the attached diff? It works for me, but I > don't understand all the implications. More or less so, applied. Pauli ___ NumPy-Discussion mailing list NumP

[Numpy-discussion] Masked arrays to Compressed arrays

2010-10-01 Thread Jesper Larsen
Hi numpy users I am using masked arrays (MA) for gridded ocean forecast fields (temperature, salinity, sea level and so on). These fields always have the same masked elements (land). And in some cases memory usage is a real issue. I have therefore made a class which stores masked arrays in a more

Re: [Numpy-discussion] ndarray: subclassing a subclass looses custom attribute

2010-10-01 Thread Pierre GM
On Oct 1, 2010, at 1:03 PM, Sebastian Haase wrote: >>> However, I had done this before for some specific image-file-types: >>> those would add there own attribute to ndarray array (e.g. arr.Mrc) >>> Now if I call the new ndarray_meta on my ndarray_with_mrc I loose the >>> `Mrc` attribute, leavin

Re: [Numpy-discussion] ndarray: subclassing a subclass looses custom attribute

2010-10-01 Thread Sebastian Haase
On Fri, Oct 1, 2010 at 12:38 PM, Pierre GM wrote: > > On Oct 1, 2010, at 11:26 AM, Sebastian Haase wrote: > >> Hi, >> I'm trying to add a 'meta' attribute to ndarray to keep track of image >> data filenames and resolution etc. >> Following  the excellent document >> http://docs.scipy.org/doc/numpy

Re: [Numpy-discussion] ndarray: subclassing a subclass looses custom attribute

2010-10-01 Thread Pierre GM
On Oct 1, 2010, at 11:26 AM, Sebastian Haase wrote: > Hi, > I'm trying to add a 'meta' attribute to ndarray to keep track of image > data filenames and resolution etc. > Following the excellent document > http://docs.scipy.org/doc/numpy/user/basics.subclassing.html > this worked right away. > >

Re: [Numpy-discussion] ndarray: subclassing a subclass looses custom attribute

2010-10-01 Thread Sebastian Haase
On Fri, Oct 1, 2010 at 11:26 AM, Sebastian Haase wrote: > Hi, > I'm trying to add a 'meta' attribute to ndarray to keep track of image > data filenames and resolution etc. > Following  the excellent document > http://docs.scipy.org/doc/numpy/user/basics.subclassing.html > this worked right away. >

[Numpy-discussion] ndarray: subclassing a subclass looses custom attribute

2010-10-01 Thread Sebastian Haase
Hi, I'm trying to add a 'meta' attribute to ndarray to keep track of image data filenames and resolution etc. Following the excellent document http://docs.scipy.org/doc/numpy/user/basics.subclassing.html this worked right away. However, I had done this before for some specific image-file-types: t

Re: [Numpy-discussion] Improvements to SciPy.org Server

2010-10-01 Thread Stéfan van der Walt
On Thu, Sep 30, 2010 at 9:15 AM, Sebastian Haase wrote: > On this note, > I looked at this page and the first two links I looked at (pycode & > graceplot) where broken ... > Is there a tool to highlight broken links in some way ? http://mentat.za.net/numpy/topical_webcheck/ This is just a s

Re: [Numpy-discussion] NPZ format

2010-10-01 Thread Francesc Alted
A Thursday 30 September 2010 18:20:16 Robert Kern escrigué: > On Wed, Sep 29, 2010 at 03:17, Francesc Alted wrote: > > Hi, > > > > I'm going to give a seminar about serialization, and I'd like to > > describe the .npy format. I noticed that there is a variant of it > > called .npz that can pack