[Numpy-discussion] numpy-discussion in google groups ?

2009-10-05 Thread denis bzowy
Folks, http://groups.google.com/group/numpy-discussion -> The group named numpy-discussion has been removed because it violated Google's Terms Of Service however scipy-user is there; how come ? I like google groups for its viewer, otherwise don't care much. What mail / group viewer do experts u

Re: [Numpy-discussion] Convert data into rectangular grid

2009-10-05 Thread denis bzowy
jah gmail.com> writes: > Thanks all.  Robert, griddata is exactly what I was looking for.  David, I think that should work too.  And Denis, griddata is sufficiently fast that I am not complaining---contouring about 1e6 or 1e7 points typically. > Fyinfo, take a look at http://yt.enzotools.org "Y

Re: [Numpy-discussion] Convert data into rectangular grid

2009-09-30 Thread denis bzowy
jah gmail.com> writes: > > Hi,Suppose I have a set of x,y,c data ... matplotlib.pyplot.contour() ). > JAH, is griddata() working and fast enough for you ? How many points are you contouring ? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy

Re: [Numpy-discussion] numpy macosx10.5 binaries: compa tible with 10.4?

2009-09-30 Thread denis bzowy
> Russell E. Owen wrote: > > All the official numpy 1.3.0 Mac binaries are labelled "macosx10.5". > > Does anyone know if these are backwards compatible with MacOS X 10.4 numpy-1.3.0-py2.5-macosx10.5.dmg works fine on macosx 10.4.11 ppc (with Python 2.5.1) -- denis

Re: [Numpy-discussion] timeit one big vs many little a[ogrid] = f(ogrid)

2009-09-15 Thread denis bzowy
Added: an inline grid y,x = np.ogrid[ j:j+n, k:k+n ] a[ j:j+n, k:k+n ] = f(x,y) is 3* faster than a[y,x] = f(x,y) for 256x256, about the same for little 8x8 squares (on mac ppc.) So ogrids are not "objects" -- you can't g = xxgrid[j:j+n, k:k+n] ... use g, pass it just like i

[Numpy-discussion] timeit one big vs many little a[ogrid] = f(ogrid)

2009-09-14 Thread denis bzowy
Folks, this simple timeit -> a largish speed ratio that surprised me -- but perhaps I've done something stupid ? """ timeit one big vs many little a[ogrid] = f(ogrid) Consider evaluating a function on an NxN grid, in 2 ways: a) in one shot: y,x = ogrid[0:N, 0:N] a[y,x] = f(x,y) b) piece

Re: [Numpy-discussion] greppable file of all numpy functions ?

2009-09-08 Thread denis bzowy
denis bzowy t-online.de> writes: > > Does anyone have a program to generate a file with one line per Numpy function > / class / method, for local grepping ? Sorry I wasn't clear: I want just all defs, one per long line, like this: ... PyQt4.QtCore.QObject.findChildren(type typ

[Numpy-discussion] greppable file of all numpy functions ?

2009-09-07 Thread denis bzowy
Does anyone have a program to generate a file with one line per Numpy function / class / method, for local grepping ? It might be useful for any package with thousands of functions too. (Grepping a Pypi summary to see "what the heck is ..." takes < 1 second.) Sorry if this is a duplicate, must exi

Re: [Numpy-discussion] adaptive interpolation on a regular 2d grid

2009-09-04 Thread denis bzowy
Robert Kern gmail.com> writes: > http://svn.scipy.org/svn/scikits/trunk/delaunay/scikits/delaunay/testfuncs.py Thank you Robert, that looks nice. I've put 1d adalin1.py in http://drop.io/denis_adalin ; have 2d, but can someone please comment on {content, style, direction} of this simple 1d (150 l

Re: [Numpy-discussion] adaptive interpolation on a regular 2d grid

2009-09-02 Thread denis bzowy
Robert Kern gmail.com> writes: > Looks good! Where can we get the code? Can this be specialized for 1D functions? Re code: sure, I'll be happy to post it if anyone points me to a real test case or two, to help me understand the envelope -- 100^2 -> 500^2 grid ? (Splines on regular grids are fa

[Numpy-discussion] a[j, k], clipping j k to the edge if they're 1 off ?

2009-08-28 Thread denis bzowy
Folks, I want to index a[j,k], clipping j or k to the edge if they're 1 off -- def aget( a, j, k ): """ -> a[j,k] or a[edge] """ # try: #return a[j,k] -- nope, -1 # except IndexError: m,n = a.shape return a[ min(max(j, 0), m-1), min(max(k, 0), n-1)]

[Numpy-discussion] adaptive interpolation on a regular 2d grid

2009-08-22 Thread denis bzowy
Folks, here's a simple adaptive interpolator; drop me a line to chat about it adalin2( func, near, nx=300, ny=150, xstep=32, ystep=16, xrange=(0,1), yrange=(0,1), dtype=np.float, norm=abs ) Purpose: interpolate a function on a regular 2d grid: take func() where it changes ra

[Numpy-discussion] gcc not g++ for build numpy on mac 10.4 ?

2008-01-16 Thread denis bzowy
Folks,   numpy/scipy builds on my mac 10.4.9 exec g++ not gcc but g++ assumes c++ even for .c files => lts of errors. I changed the link /usr/bin/g++ --> gcc, must be a better way ? Seems to me that g++ on numpy C is a bug: numpy builds on macs should run either   gcc or   g++ -x c