Re: [Numpy-discussion] printing structured arrays

2010-03-10 Thread Bruce Schultz
On 10/03/10 10:09, Bruce Schultz wrote: On Sat, Mar 6, 2010 at 8:35 AM, Gökhan Sever gokhanse...@gmail.com wrote: On Fri, Mar 5, 2010 at 8:00 AM, Bruce Schultz bruce.schu...@gmail.com wrote: Output is: ### ndarray [[ 1. 2. ] [ 3. 4.1]] ### structured array [(1.0, 2.0

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Bruce Schultz
On Sat, Mar 6, 2010 at 8:35 AM, Gökhan Sever gokhanse...@gmail.com wrote: On Fri, Mar 5, 2010 at 8:00 AM, Bruce Schultz bruce.schu...@gmail.com wrote: Output is: ### ndarray [[ 1.   2. ]  [ 3.   4.1]] ### structured array [(1.0, 2.0) (3.0, 4.0996)] Thanks Bruce I

[Numpy-discussion] printing structured arrays

2010-03-05 Thread Bruce Schultz
Hi, I've just started playing with numpy and have noticed that when printing a structured array that the output is not nicely formatted. Is there a way to make the formatting look the same as it does for an unstructured array? Here an example of what I mean: data = [ (1, 2), (3, 4.1) ] dtype =