nengo/nengo-1.4

Printing a numeric.array is not all that interpretable

tcstewar opened this issue · 3 comments

If you do

A = array([[1, 2], [3, 4]])
print A

in Nengo, you get

arrayObject(data=[1, 2, 3, 4], typecode=i, start=0, dimensions=[2,2], strides=[2,1])

It'd be nicer to give

[[1 2]
 [3 4]]

as an output instead. Right now, this can only be done by

print str(A)

This is because a perhaps short-sighted change by a previous maintainer of jnumeric. See the source for printing an array. Could you make this a jnumeric issue instead?

Ah, good point! I'd forgotten jnumeric was separated out like that... I've added the issue there.

Thanks!