Numpy Array printing algorithms

Stéfan van der Walt stefan at mentat.za.net
Tue Jun 3 12:26:13 EDT 2014


On Tue, Jun 3, 2014 at 4:13 PM, Juan Nunez-Iglesias <jni.soma at gmail.com>
wrote:
> @Stéfan, yes, but why the two spaces after each comma? I think that's
weird.

I don't know, but my guess would be readability:

In [15]: np.linspace(999, 1024, 13) Out[15]: array([ 999. , 1001.08333333,
1003.16666667, 1005.25 , 1007.33333333, 1009.41666667, 1011.5 ,
1013.58333333, 1015.66666667, 1017.75 , 1019.83333333, 1021.91666667, 1024.
])

In [15]: np.linspace(999, 1024, 13) Out[15]: array([ 999. , 1001.08333333,
1003.16666667, 1005.25 , 1007.33333333, 1009.41666667, 1011.5 ,
1013.58333333, 1015.66666667, 1017.75 , 1019.83333333, 1021.91666667, 1024.
])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20140603/d60a5936/attachment.html>


More information about the scikit-image mailing list