Re: Numpy Array printing algorithms
@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@mentat.za.net> wrote:
On Tue, Jun 3, 2014 at 7:00 AM, Juan Nunez-Iglesias <jni.soma@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@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
participants (1)
-
Juan Nunez-Iglesias