Hi all! I realized that numpy.loadtxt do not read the last character of an input file. This is annoying if the input file do not end with a newline. For example:
data.txt ------- 1 2 3<EOF> In [33]: numpy.loadtxt('data.txt') Out[33]: array([ 1., 2.]) While: data.txt ------- 1 2 3 <EOF> In [33]: numpy.loadtxt('data.txt') Out[33]: array([ 1., 2., 3.]) Should I use numpy.fromfile, instead? L. -- Lorenzo Bolla [EMAIL PROTECTED] http://lorenzobolla.emurse.com/
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion