Re: [Numpy-discussion] Don't understand this error

2010-07-27 Thread David Goldsmith
Thanks, that was it. DG On Tue, Jul 27, 2010 at 3:02 PM, Robert Kern wrote: > On Tue, Jul 27, 2010 at 16:59, David Goldsmith > wrote: > > res = np.fromfunction(make_res, (nx, ny)) > >File "C:\Python26\lib\site-packages\numpy\core\numeric.py", line 1538, > in > > fromfunction > > args = ind

Re: [Numpy-discussion] Don't understand this error

2010-07-27 Thread Robert Kern
On Tue, Jul 27, 2010 at 16:59, David Goldsmith wrote: > res = np.fromfunction(make_res, (nx, ny)) >    File "C:\Python26\lib\site-packages\numpy\core\numeric.py", line 1538, in > fromfunction > args = indices(shape, dtype=dtype) >    File "C:\Python26\lib\site-packages\numpy\core\numeric.py", line

[Numpy-discussion] Don't understand this error

2010-07-27 Thread David Goldsmith
res = np.fromfunction(make_res, (nx, ny)) File "C:\Python26\lib\site-packages\numpy\core\numeric.py", line 1538, in fromfunction args = indices(shape, dtype=dtype) File "C:\Python26\lib\site-packages\numpy\core\numeric.py", line 1480, in indices tmp.shape = (1,)*i + (dim,)+(1,)*(N-i-1) ValueE