[Numpy-discussion] spurious space in printing record arrays?

Benjamin Root ben.root at ou.edu
Thu May 10 15:46:04 EDT 2012


Just noticed this in the output from printing some numpy record arrays:

[[('2008081712', -24, -78.0, 20.100000381469727, 45.0, -999.0, 0.0)]
 [ ('2008081718', -18, -79.5999984741211, 20.700000762939453, 45.0, -999.0,
0.0)]
 [ ('2008081800', -12, -80.30000305175781, 21.100000381469727, 45.0,
-999.0, 0.0)]
 [ ('2008081806', -6, -80.80000305175781, 21.899999618530273, 45.0, -999.0,
0.0)]
 [ ('2008081812', 0, -81.19999694824219, 23.200000762939453, 50.0, -999.0,
1002.0)]]


[[ ('2008081812', 0, -81.19999694824219, 23.200000762939453, 50.0, -999.0,
0.0)]
 [('2008081815', 3, -81.5, 23.600000381469727, 50.0, -999.0, 1003.0)]
 [ ('2008081900', 12, -81.80000305175781, 24.600000381469727, 55.0, -999.0,
0.0)]
 [ ('2008081912', 24, -82.0999984741211, 26.200000762939453, 65.0, -999.0,
0.0)]
 [('2008082000', 36, -82.0, 27.799999237060547, 50.0, -999.0, 0.0)]
 [ ('2008082012', 48, -81.80000305175781, 29.299999237060547, 40.0, -999.0,
0.0)]
 [('2008082112', 72, -81.5, 31.5, 35.0, -999.0, 0.0)]
 [('2008082212', 96, -81.5, 33.599998474121094, 25.0, -999.0, 0.0)]
 [('2008082312', 120, -82.5, 35.5, 20.0, -999.0, 0.0)]]

On my 80-character wide terminal window, each line that gets wrapped also
has an extra space after the inner square bracket.  Coincidence? Using
v1.6.1

I don't think it is a big problem... just odd.

Thanks,
Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120510/9739da7f/attachment.html>


More information about the NumPy-Discussion mailing list