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
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
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
> 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
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
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
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
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
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
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
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)]
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
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
13 matches
Mail list logo