Numpy Array printing algorithms

Juan Nunez-Iglesias jni.soma at gmail.com
Tue Jun 3 10:13:30 EDT 2014


@Stéfan, yes, but why the two spaces after each comma? I think that's weird.


On Tue, Jun 3, 2014 at 5:03 PM, Stéfan van der Walt <stefan at mentat.za.net>
wrote:

> On Tue, Jun 3, 2014 at 7:00 AM, Juan Nunez-Iglesias <jni.soma at gmail.com>
> wrote:
> > In [15]: lifio.parse_series_name(name2)[1][:5]
> > Out[15]: array([ 63. ,  63.5,  64. ,  64.5,  65. ])
> >
> > In [16]: lifio.parse_series_name(name2, 1)[1][:5]
> > Out[16]: array([ 63.,  64.,  65.,  66.,  67.])
>
> Numpy is lining up the decimals for you:
>
> 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.        ])
>
> Stéfan
>
> --
> You received this message because you are subscribed to the Google Groups
> "scikit-image" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to scikit-image+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20140604/7a1c8208/attachment.html>


More information about the scikit-image mailing list