Re: [Tutor] Numpy documentation

2018-10-04 Thread Steven D'Aprano
Hi Roger, My comments below, below yours. On Thu, Oct 04, 2018 at 12:02:01PM -0700, Roger Lea Scherer wrote: [...] > In the example pictured below, the array has 2 axes. The first axis has a > length of 2, the second axis has a length of 3. > [[ 1., 0., 0.], > [ 0., 1., 2.]] > > (I think) I u

Re: [Tutor] Numpy documentation

2018-10-04 Thread Alan Gauld via Tutor
On 04/10/18 20:02, Roger Lea Scherer wrote: > In the example pictured below, the array has 2 axes. The first axis has a > length of 2, the second axis has a length of 3. > [[ 1., 0., 0.], > [ 0., 1., 2.]] > > (I think) I understand the 2 axes. [1,0,0] (I'm lazy and don't want to type > the peri

[Tutor] Numpy documentation

2018-10-04 Thread Roger Lea Scherer
I truly don't think I'm this stupid, but I can't even understand the fourth paragraph of the numpy documentation. https://docs.scipy.org/doc/numpy/user/quickstart.html says: In the example pictured below, the array has 2 axes. The first axis has a length of 2, the second axis has a length of 3. [

Re: [Tutor] NumPy and SciPy

2016-09-28 Thread Steven D'Aprano
On Tue, Sep 27, 2016 at 03:23:23PM +, Floeck, Thomas wrote: > Hi there, > > you have an idea where I can find NumPy and SciPy windows *.exe-files > for Python 3.5? Why does it have to be an .exe file? http://www.scipy.org/install.html -- Steve ___

Re: [Tutor] NumPy and SciPy

2016-09-27 Thread Alan Gauld via Tutor
On 27/09/16 16:23, Floeck, Thomas wrote: > you have an idea where I can find NumPy and SciPy windows *.exe-files for > Python 3.5? I'm not sure if they are up to 3.5 yet or not but the easiest way is just to grab a full distro such as Anaconda or Canopy. Google is your friend. -- Alan G Autho

[Tutor] NumPy and SciPy

2016-09-27 Thread Floeck, Thomas
Hi there, you have an idea where I can find NumPy and SciPy windows *.exe-files for Python 3.5? Thanks for any help! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] numpy import failure

2011-02-28 Thread Alan Gauld
"Ezra Kahn" wrote appreciate the help, I am so new at this, I don't know if things aren't working because it is me, or because something else is wrong (I feel like a person who has known how to drive for years, but never bothered to look under the hood of the car). Thats a good analogy and

Re: [Tutor] numpy import failure

2011-02-28 Thread Andre' Walker-Loud
ython.org wrote: >> Date: Sun, 27 Feb 2011 18:58:46 -0800 >> From: Andre' Walker-Loud >> To: Ezra Kahn >> Cc:tutor@python.org >> Subject: Re: [Tutor] numpy import failure >> Message-ID:<75198436-f849-4994-8d48-1726c2ee7...@gmail.com> >> Content-T

Re: [Tutor] numpy import failure

2011-02-28 Thread Ezra Kahn
On 2/27/2011 9:36 PM, tutor-requ...@python.org wrote: Date: Sun, 27 Feb 2011 18:58:46 -0800 From: Andre' Walker-Loud To: Ezra Kahn Cc:tutor@python.org Subject: Re: [Tutor] numpy import failure Message-ID:<75198436-f849-4994-8d48-1726c2ee7...@gmail.com> Content-Type: text/plain; chars

Re: [Tutor] numpy import failure

2011-02-27 Thread Andre' Walker-Loud
Hi Ezra, Are you using Mac OSX or LINUX or ... If you have a preexisting python installation, it may be that when you launch python, it loads the older version, and not the new EPD version. When you launch python, what do you see? For example, on my Mac OSX, launched from Terminal, I get %

Re: [Tutor] numpy import failure

2011-02-27 Thread Bill Allen
On Sat, Feb 26, 2011 at 22:45, Ezra Kahn wrote: > I am a total newb, learning to ween myself off of Matlab. I am working off > of EPD6.1, and I cannot get numpy to import. Python keeps sending me back > this: > > Traceback (most recent call last): > File "", line 1, in >import numpy > Imp

Re: [Tutor] numpy import failure

2011-02-27 Thread Steven D'Aprano
Ezra Kahn wrote: I am a total newb, learning to ween myself off of Matlab. I am working off of EPD6.1, and I cannot get numpy to import. Python keeps sending me back this: Traceback (most recent call last): File "", line 1, in import numpy ImportError: No module named numpy What's E

Re: [Tutor] numpy import failure

2011-02-27 Thread Alan Gauld
"Ezra Kahn" wrote I am a total newb, learning to ween myself off of Matlab. I am working off of EPD6.1, and I cannot get numpy to import. Python keeps sending me back this: ImportError: No module named numpy Lets start at the beginning. What OS are you using? What Python version? What n

[Tutor] numpy import failure

2011-02-27 Thread Ezra Kahn
I am a total newb, learning to ween myself off of Matlab. I am working off of EPD6.1, and I cannot get numpy to import. Python keeps sending me back this: Traceback (most recent call last): File "", line 1, in import numpy ImportError: No module named numpy How do I trouble shoot this

Re: [Tutor] Numpy unexpected result: subtraction of cell values

2010-01-11 Thread Kent Johnson
On Mon, Jan 11, 2010 at 2:02 PM, Carnell, James E wrote: >> I want to subtract the Red Value in an array cell from a neighboring >> Red Value cell. >> >> >>> pictArray[39][4]    #pixel at 39 4 >> array([150, 140, 120], dtype=unint8) >> >> >>> pictArray[39][5]    #p

Re: [Tutor] Numpy unexpected result: subtraction of cell values

2010-01-11 Thread Marc Tompkins
On Mon, Jan 11, 2010 at 11:02 AM, Carnell, James E < jecarn...@saintfrancis.com> wrote: > > > > > I'm sure this is easy, but I am having a difficult time finding the > > right search terms to find it on the Internet. Any help much > > appreciated. > > > > 3 dimensional array(x,y,rgb) which is a PI

Re: [Tutor] Numpy unexpected result: subtraction of cell values

2010-01-11 Thread Carnell, James E
> > I'm sure this is easy, but I am having a difficult time finding the > right search terms to find it on the Internet. Any help much > appreciated. > > 3 dimensional array(x,y,rgb) which is a PIL image into a numpy array > using 'asarray' function. > > I want to subtract the Red Value in an a

Re: [Tutor] Numpy unexpected result: subtraction of cell values

2010-01-11 Thread Marc Tompkins
On Mon, Jan 11, 2010 at 10:20 AM, Carnell, James E < jecarn...@saintfrancis.com> wrote: > > I'm sure this is easy, but I am having a difficult time finding the right > search terms to find it on the Internet. Any help much appreciated. > > 3 dimensional array(x,y,rgb) which is a PIL image into a n

[Tutor] Numpy unexpected result: subtraction of cell values

2010-01-11 Thread Carnell, James E
I'm sure this is easy, but I am having a difficult time finding the right search terms to find it on the Internet. Any help much appreciated. 3 dimensional array(x,y,rgb) which is a PIL image into a numpy array using 'asarray' function. I want to subtract the Red Value in an array cell from a ne

[Tutor] numpy and py2exe

2009-11-21 Thread Jeff Peery
Hello I have a python app that uses wxPython, numpy, and I'm trying to package it with py2exe. I get the below error. I tried putting a dummy __init__.py file in the distutils.tests directory but this did not solve the problem. how may I fix this?   *** searching for required modules *** Traceb

Re: [Tutor] NumPy Question - numpy.put in multi-dimensional array

2007-11-13 Thread Bryan Fodness
Thank you. That works great! On Nov 13, 2007 7:18 PM, Eike Welk <[EMAIL PROTECTED]> wrote: > Hello Bryan! > > On Wednesday 14 November 2007 00:18, Bryan Fodness wrote: > > I see how to do it in a one-dimenstional array, but do not know the > > syntax for the multi-dimensional case. > > > > >from

Re: [Tutor] NumPy Question - numpy.put in multi-dimensional array

2007-11-13 Thread Eike Welk
Hello Bryan! On Wednesday 14 November 2007 00:18, Bryan Fodness wrote: > I see how to do it in a one-dimenstional array, but do not know the > syntax for the multi-dimensional case. > > >from numpy import * > > a = zeros((60,40), int) > > fields = {} > field = 10 > fields[field] = '30A', 5 > > iy

[Tutor] NumPy Question - numpy.put in multi-dimensional array

2007-11-13 Thread Bryan Fodness
I see how to do it in a one-dimenstional array, but do not know the syntax for the multi-dimensional case. from numpy import * a = zeros((60,40), int) fields = {} field = 10 fields[field] = '30A', 5 iy = int(fields[field][1]) ix = int(fields[field][0].rstrip('AB')) for j in range(iy): pu

Re: [Tutor] Numpy

2007-03-14 Thread Eike Welk
Hello Miguel! You should go to the NumPy mailing list: http://projects.scipy.org/mailman/listinfo/numpy-discussion There are also people with Mac knowledge. (I use Linux.) Regards Eike. ___ Tutor maillist - Tutor@python.org http://mail.python.org/m

[Tutor] Numpy

2007-03-13 Thread Miguel Oliveira, Jr.
Hello, I've just intalled [manually] numpy into a Mac Intel OS 10.4. I'm running Python version 2.5. Whenever I import numpy, I get the following message: Running from numpy source directory Does anyone know if this is normal? In Python 2.4, no such message pops up when numpy is imported.

Re: [Tutor] numpy memory muncher

2006-11-15 Thread Kent Johnson
Alan Gauld wrote: >> I can reproduce the problem on my Linux system, so it is not Mac >> specific. Using xrange makes no difference. > > I believe that in recent Pythons (v2.3 onwards?) xrange is just > an alias for range since range was reimplementted to use > generators. So the old menory iss

Re: [Tutor] numpy memory muncher

2006-11-15 Thread Alan Gauld
> I can reproduce the problem on my Linux system, so it is not Mac > specific. Using xrange makes no difference. I believe that in recent Pythons (v2.3 onwards?) xrange is just an alias for range since range was reimplementted to use generators. So the old menory issues with range no longer ap

Re: [Tutor] numpy memory muncher

2006-11-13 Thread Python
On Sat, 2006-11-11 at 15:40 -0500, Joel Levine wrote: > I'm using, perhaps misusing numpy which is eating up the memory and, > eventually crashing my program. I can reproduce the problem on my Linux system, so it is not Mac specific. Using xrange makes no difference. Oddly enough, print

Re: [Tutor] numpy memory muncher

2006-11-13 Thread Lloyd Kvam
On Sat, 2006-11-11 at 15:40 -0500, Joel Levine wrote: > I'm using, perhaps misusing numpy which is eating up the memory and, > eventually crashing my program. OK. that's a small enough piece of code to figure things out. One quick suggestion, for looping variables xrange avoids creating a real l

[Tutor] numpy memory muncher

2006-11-11 Thread Joel Levine
I'm using, perhaps misusing numpy which is eating up the memory and, eventually crashing my program. Isolating it, the following piece of code continually eats memory. Is it my program or what ...? Thanks Joel Levine Using Mac OSX 10.4.7 Not clear on versions: Appears to be 0.9.8 with py2.4

Re: [Tutor] numpy and python

2006-11-06 Thread Danny Yoo
[Danny] >> If you're using NumPy, then the correct package name for it is 'numpy', >> not 'Numeric'. >> >> from numpy import * [Linda] > I think the code is suing Numeric (is it called numpy now? if so, how > to make the change?) So it's not your code? If it's not your own code then, nail

Re: [Tutor] numpy and python

2006-11-06 Thread linda.s
On 11/6/06, Danny Yoo <[EMAIL PROTECTED]> wrote: > > > On Mon, 6 Nov 2006, linda.s wrote: > > > I use Python 2.4 IDLE to open a py code which import numeric. > > I have installed both scipy and numpy into my c:\python24. However, it > > was still reported as: > > Hi Linda, > > We need more details.

Re: [Tutor] numpy and python

2006-11-06 Thread Danny Yoo
On Mon, 6 Nov 2006, linda.s wrote: > I use Python 2.4 IDLE to open a py code which import numeric. > I have installed both scipy and numpy into my c:\python24. However, it > was still reported as: Hi Linda, We need more details. What version of scipy and numpy did you install? Where did you

[Tutor] numpy and python

2006-11-06 Thread linda.s
I use Python 2.4 IDLE to open a py code which import numeric. I have installed both scipy and numpy into my c:\python24. However, it was still reported as: from Numeric import * ImportError: No module named Numeric I got confused... ___ Tutor maillist

[Tutor] numpy help

2006-11-03 Thread Chris Smith
Howdy, I'm a college student and for one of we are writing programs to numerically compute the parameters of antenna arrays. I decided to use Python to code up my programs. Up to now I haven't had a problem, however we have a problem set where we are creating a large matrix and finding it's i

Re: [Tutor] NumPy

2006-06-28 Thread Dave Kuhlman
On Wed, Jun 28, 2006 at 04:35:15PM +0200, michel maho wrote: > To all, > Can somebody tell me from where to download NumPy easely. > Thank you > Michel Maho Well, you probably want SciPy, which is the latest in scientific programming for Python. It's here: http://scipy.org/ There is also a NumPy

[Tutor] NumPy

2006-06-28 Thread michel maho
To all, Can somebody tell me from where to download NumPy easely. Thank you Michel Maho ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] numpy speed problems

2006-06-09 Thread Dave Kuhlman
On Fri, Jun 09, 2006 at 11:57:32AM -0700, Bob Gailer wrote: > Jeff Peery wrote: > > hello, I am having some trouble with the speed of numpy. I'm crunching > > some numbers (see the attached script) and in total I have 1,000,000 > > grid points over which I am integrating. I'm doing a bunch of add

Re: [Tutor] numpy speed problems

2006-06-09 Thread Bob Gailer
Jeff Peery wrote: > hello, I am having some trouble with the speed of numpy. I'm crunching > some numbers (see the attached script) and in total I have 1,000,000 > grid points over which I am integrating. I'm doing a bunch of adding, > mulitply, divide, powers, etc, but in total there are 1,000,

[Tutor] numpy speed problems

2006-06-09 Thread Jeff Peery
hello, I am having some trouble with the speed of numpy. I'm crunching some numbers (see the attached script) and in total I have 1,000,000 grid points over which I am integrating. I'm doing a bunch of adding, mulitply, divide, powers, etc, but in total there are 1,000,000 points to do these operat