Re: [Numpy-discussion] Need **working** code example of 2-D arrays

2008-10-12 Thread Pierre GM
Linda, If you're familiar with Matlab syntax, you may find this link interesting: http://www.scipy.org/NumPy_for_Matlab_Users Here another couple of useful links http://www.scipy.org/Tentative_NumPy_Tutorial http://www.scipy.org/Numpy_Functions_by_Category For your specific example, if you want t

Re: [Numpy-discussion] Need **working** code example of 2-D arrays

2008-10-12 Thread Linda Seltzer
L. Brooks of M.I.T. sent a professional e-mail with a code fragment that has worked. > Friends, > >>> Those statements are not demeaning; lighten up. >> STOP IT. JUST STOP IT. STOP IT RIGHT NOW. > > Let us not go to this place, honestly, there is no need. Let's go > back to the technical problem

Re: [Numpy-discussion] Need **working** code example of 2-D arrays

2008-10-12 Thread Matthew Brett
Friends, >> Those statements are not demeaning; lighten up. > STOP IT. JUST STOP IT. STOP IT RIGHT NOW. Let us not go to this place, honestly, there is no need. Let's go back to the technical problem again. Linda, did you have time to try Alan's example? Best, Matthew __

Re: [Numpy-discussion] Need **working** code example of 2-D arrays

2008-10-12 Thread Linda Seltzer
> > Those statements are not demeaning; lighten up. STOP IT. JUST STOP IT. STOP IT RIGHT NOW. Is there a moderator on the list to put a stop to these kinds of statements? I deserve to be treated with respect. I deserve to have my questions treated with respect. I deserve to receive technical info

Re: [Numpy-discussion] Need **working** code example of 2-D arrays

2008-10-12 Thread Alan G Isaac
On 10/12/2008 2:39 AM Linda Seltzer apparently wrote: > Please, no demeaning statements like "you forgot > a parenthesis" or "you were using someone else's code" > - just the lines of code for a file that actually *works.* Those statements are not demeaning; lighten up. And the answer was corr

Re: [Numpy-discussion] Data types in Numerical Python

2008-10-12 Thread Charles R Harris
On Sun, Oct 12, 2008 at 9:11 AM, Linda Seltzer <[EMAIL PROTECTED]>wrote: > > Here is an example that works for any working numpy installation: > > > > import numpy as npy > > npy.zeros((256, 256)) > This suggestion from David did work so far, and removing the other import > line enabled the progra

Re: [Numpy-discussion] Data types in Numerical Python

2008-10-12 Thread Andrew Dalke
On Oct 12, 2008, at 5:26 PM, Anne Archibald wrote: > Python is a dynamically-typed language (unlike C), so variables do not > have type. Another way to think of it for C people is that all variables have the same type, which is "reference to Python object." It's the objects which are typed, and no

Re: [Numpy-discussion] Data types in Numerical Python

2008-10-12 Thread Lane Brooks
Linda Seltzer wrote: Here is an example that works for any working numpy installation: import numpy as npy npy.zeros((256, 256)) This suggestion from David did work so far, and removing the other import line enabled the program to run. However, the data types the program used as defaults f

Re: [Numpy-discussion] Data types in Numerical Python

2008-10-12 Thread Anne Archibald
2008/10/12 Linda Seltzer <[EMAIL PROTECTED]>: >> Here is an example that works for any working numpy installation: >> >> import numpy as npy >> npy.zeros((256, 256)) > This suggestion from David did work so far, and removing the other import > line enabled the program to run. > However, the data ty

[Numpy-discussion] Data types in Numerical Python

2008-10-12 Thread Linda Seltzer
> Here is an example that works for any working numpy installation: > > import numpy as npy > npy.zeros((256, 256)) This suggestion from David did work so far, and removing the other import line enabled the program to run. However, the data types the program used as defaults for variables has chang

Re: [Numpy-discussion] Proposal: scipy.spatial

2008-10-12 Thread Anne Archibald
2008/10/9 David Bolme <[EMAIL PROTECTED]>: > I have written up basic nearest neighbor algorithm. It does a brute > force search so it will be slower than kdtrees as the number of points > gets large. It should however work well for high dimensional data. I > have also added the option for user d

Re: [Numpy-discussion] Need **working** code example of 2-D arrays

2008-10-12 Thread Robert Kern
On Sun, Oct 12, 2008 at 03:11, David Cournapeau <[EMAIL PROTECTED]> wrote: > On Sun, Oct 12, 2008 at 3:39 PM, Linda Seltzer > <[EMAIL PROTECTED]> wrote: > >> These are the import statements I used: >> import numpy as npy >> from numpy.oldnumeric import * > > Here is an example that works for any wo

Re: [Numpy-discussion] Need **working** code example of 2-D arrays

2008-10-12 Thread David Cournapeau
On Sun, Oct 12, 2008 at 3:39 PM, Linda Seltzer <[EMAIL PROTECTED]> wrote: > These are the import statements I used: > import numpy as npy > from numpy.oldnumeric import * Here is an example that works for any working numpy installation: import numpy as npy npy.zeros((256, 256)). If those are th