Re: [Numpy-discussion] switching from Numeric to numpy

2013-10-18 Thread Raul Cota
John, Just noticed this message, We are already cleaning up all of our code to not be numpy based but for porting from Numeric to numpy: In our C code we settled for the following, #define NUMPY #if !defined(NUMPY) #include "arrayobject.h" #else #include "numpy/oldnumeric.h" #endi

Re: [Numpy-discussion] OT: How are SVG data converted into curves

2013-10-18 Thread Chris Barker
On Wed, Oct 16, 2013 at 4:23 PM, Daniele Nicolodi wrote: > the format is quite clearly documented. For the path data you can see > http://www.w3.org/TR/SVG/paths.html. There are several open source > libraries that implement SVG rendering, you may look at those to see how > the rendering can be i

Re: [Numpy-discussion] Equivalent to IDL's help function

2013-10-18 Thread Chris Barker
On Mon, Oct 7, 2013 at 10:15 AM, Siegfried Gonzi wrote: > What is the equivalent to IDL its help function, e.g. > > == > IDL> a = make_array(23,23,) > > IDL> help,a > > will result in: > > A FLOAT = Array[23, 23] am I missing something, or is this what you get when you type a na

Re: [Numpy-discussion] how to do scoring of random point to avoid overlapping in python

2013-10-18 Thread Pooja Gupta
Thanks Hanno I got some idea. How about the bin(grid)?? On Fri, Oct 18, 2013 at 8:21 PM, Hanno Klemm wrote: > On 18.10.2013 12:33, Pooja Gupta wrote: > > I have generated random point around a object and then evaluate each > > random point on certain criteria. But problem is that every tim

Re: [Numpy-discussion] how to do scoring of random point to avoid overlapping in python

2013-10-18 Thread Hanno Klemm
On 18.10.2013 12:33, Pooja Gupta wrote: > I have generated random point around a object and then evaluate each > random point on certain criteria. But problem is that every time I am > getting new point. How i can resolve this problem so that my result > should be uniform. Is any way to evaluate th

[Numpy-discussion] how to do scoring of random point to avoid overlapping in python

2013-10-18 Thread Pooja Gupta
I have generated random point around a object and then evaluate each random point on certain criteria. But problem is that every time I am getting new point. How i can resolve this problem so that my result should be uniform. Is any way to evaluate the position of random point. for arang in range