[Tutor] Converting a numpy matrix to a numpy array

2011-03-30 Thread David Crisp
Hello, I have a very simple question / problem I need answered.  The problem is imnot entirely sure of the correct terminology and langauge to use to describe it.  (One of the reasons im using this miling list) I have a 2d matrix representing the X the Y and the Z value of a point.  I wish to con

Re: [Tutor] Converting a numpy matrix to a numpy array

2011-04-03 Thread David Crisp
On Fri, Apr 1, 2011 at 2:04 AM, Peter Otten <__pete...@web.de> wrote: > David Crisp wrote: > >> Hello, >> >> I have a very simple question / problem I need answered.  The problem >> is imnot entirely sure of the correct terminology and langauge to use >&g

[Tutor] Memory profileing on Python 2.7 64bit for windows

2011-04-17 Thread David Crisp
Hello, I need to look at the memory usage of a number of sets of data I am working with. I have been able to find memory profilers for Python 2.6 but I havent been able to find anything for Python 2.7 and or Python 2.7 64bit. Can anybody point me in the right direction for this? Regards, David

[Tutor] Best way to store and access a fixed coordinate list

2011-08-18 Thread David Crisp
Hello, I have a large grid of numbers 100 * 100 I then randomly select an X and Y to act as a "centre" point. I have a list of numbers which are coordinate offsets which are then applied to the centre point as per: X = (-2,2),(-4,2),(4,2),(2,2) (The list is about 200 coordinate pairs long) T

Re: [Tutor] Best way to store and access a fixed coordinate list

2011-08-19 Thread David Crisp
deep in the forest and couldnt see the tree! x = {(1,2),(4,4),(4,6),(3,5)} for eachitem in x: print eachitem,eachitem[0], eachitem[1] Regards, On Fri, Aug 19, 2011 at 1:14 PM, David Crisp wrote: > Hello, > > I have a large grid of numbers  100 * 100 > > I then rando