Re: [Numpy-discussion] Number of elements in a intersection graph

2014-07-10 Thread Ted Sandler
Use NetworkX + breadth first search and you are done. On Wed, Jul 9, 2014 at 12:31 PM, Robert Kern wrote: > On Wed, Jul 9, 2014 at 1:29 AM, Josè Luis Mietta > wrote: > > Hi experts!! > > > > I am studying the intersection between line segments (sticks). I have an > > Numpy array (M) correspon

Re: [Numpy-discussion] parsing dtype descriptors

2014-07-06 Thread Ted Sandler
Thanks! On Fri, Jul 4, 2014 at 1:53 AM, Robert Kern wrote: > On Thu, Jul 3, 2014 at 10:53 PM, Ted Sandler > wrote: > > Thanks. No, it's not what I'm looking for. > > > > I'm looking for the code that parses the string " array > > header's

Re: [Numpy-discussion] parsing dtype descriptors

2014-07-03 Thread Ted Sandler
s-loadtxt-an-genfromtxt Thanks again, Ted On Thu, Jul 3, 2014 at 12:35 PM, Valentin Haenel wrote: > Dear Ted, > > * Ted Sandler [2014-07-03]: > > Hi all, is there a spec or grammar for valid values of numpy dtype > > descriptor strings? > > > > I am wri

[Numpy-discussion] parsing dtype descriptors

2014-07-03 Thread Ted Sandler
Hi all, is there a spec or grammar for valid values of numpy dtype descriptor strings? I am writing code to parse ".npy" files from Java and want to be able to handle the range of ndarray descriptor strings. I came across this code: dtype = numpy.dtype(d['descr']) at line 267 in format.py: