Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Skipper Seabold
On Wed, Jul 21, 2010 at 5:48 PM, Keith Goodman wrote: > On Wed, Jul 21, 2010 at 2:32 PM, Rob Speer wrote: >> I agree with the idea that axis labels must be strings. >> >> Yes, this is the opposite of my position on tick labels ("names"), but >> there's a reason: ticks are often defined by whateve

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Keith Goodman
On Wed, Jul 21, 2010 at 2:32 PM, Rob Speer wrote: > I agree with the idea that axis labels must be strings. > > Yes, this is the opposite of my position on tick labels ("names"), but > there's a reason: ticks are often defined by whatever data you happen > to be working with, but axis labels will

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Joshua Holbrook
Make that +2. --Josh On Wed, Jul 21, 2010 at 1:38 PM, Skipper Seabold wrote: > On Wed, Jul 21, 2010 at 5:32 PM, Rob Speer wrote: >> I agree with the idea that axis labels must be strings. >> >> Yes, this is the opposite of my position on tick labels ("names"), but >> there's a reason: ticks are

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Skipper Seabold
On Wed, Jul 21, 2010 at 5:32 PM, Rob Speer wrote: > I agree with the idea that axis labels must be strings. > > Yes, this is the opposite of my position on tick labels ("names"), but > there's a reason: ticks are often defined by whatever data you happen > to be working with, but axis labels will

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Rob Speer
I agree with the idea that axis labels must be strings. Yes, this is the opposite of my position on tick labels ("names"), but there's a reason: ticks are often defined by whatever data you happen to be working with, but axis labels will in the vast majority of situations be defined by the program

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Vincent Davis
On Wed, Jul 21, 2010 at 1:00 PM, Keith Goodman wrote: > On Wed, Jul 21, 2010 at 11:41 AM, Vincent Davis > wrote: >> On Wed, Jul 21, 2010 at 11:08 AM, Keith Goodman wrote: >>> On Wed, Jul 21, 2010 at 9:56 AM, John Salvatier >>> wrote: I don't really know much about this topic, but what abou

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Keith Goodman
On Wed, Jul 21, 2010 at 11:41 AM, Vincent Davis wrote: > On Wed, Jul 21, 2010 at 11:08 AM, Keith Goodman wrote: >> On Wed, Jul 21, 2010 at 9:56 AM, John Salvatier >> wrote: >>> I don't really know much about this topic, but what about a flag at array >>> creation time (or whenever you define lab

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Vincent Davis
On Wed, Jul 21, 2010 at 11:08 AM, Keith Goodman wrote: > On Wed, Jul 21, 2010 at 9:56 AM, John Salvatier > wrote: >> I don't really know much about this topic, but what about a flag at array >> creation time (or whenever you define labels) that says whether valid >> indexes will be treated as lab

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Keith Goodman
On Wed, Jul 21, 2010 at 10:58 AM, M Trumpis wrote: > Separately, regarding the permissible axis labels, I think we must not > allow any enumerated axis labels (ie, ints and floats). I don't > remember if there was a consensus about that yesterday. We don't have > the flexibility in the ndarray AP

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread M Trumpis
On Wed, Jul 21, 2010 at 10:08 AM, Keith Goodman wrote: > On Wed, Jul 21, 2010 at 9:56 AM, John Salvatier > wrote: >> I don't really know much about this topic, but what about a flag at array >> creation time (or whenever you define labels) that says whether valid >> indexes will be treated as lab

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Keith Goodman
On Wed, Jul 21, 2010 at 10:41 AM, Bruce Southey wrote: > The current implemented option of allowing strings is the only practical > option and I think that most other related languages also impose this > constraint. Otherwise we will effectively break compatibility with Python > and numpy because

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Bruce Southey
On 07/21/2010 11:56 AM, John Salvatier wrote: I don't really know much about this topic, but what about a flag at array creation time (or whenever you define labels) that says whether valid indexes will be treated as labels or indexes for that array? On Wed, Jul 21, 2010 at 9:37 AM, Keith Good

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Keith Goodman
On Wed, Jul 21, 2010 at 9:56 AM, John Salvatier wrote: > I don't really know much about this topic, but what about a flag at array > creation time (or whenever you define labels) that says whether valid > indexes will be treated as labels or indexes for that array? It's an interesting idea. My gu

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread John Salvatier
I don't really know much about this topic, but what about a flag at array creation time (or whenever you define labels) that says whether valid indexes will be treated as labels or indexes for that array? On Wed, Jul 21, 2010 at 9:37 AM, Keith Goodman wrote: > About a dozen people attended what

[Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Keith Goodman
About a dozen people attended what was billed as a continuation of the SciPy 2010 datarray BoF. We met at UC Berkeley on July 19 as part of the py4science series. A datarray is a subclass of a Numpy array that adds the ability to label the axes and to label the elements along each axis. We spent