Dear list,
I observe a difference when I try to load a 2D numpy array from a file
object compared to if I supply a filename viz:

>>> np.version.version
'1.5.1'
>>> f=open('fit_theoretical.txt')
>>> a=np.loadtxt(f)
>>> a.shape
(1000,)
>>> a=np.loadtxt('fit_theoretical.txt')
>>> a.shape
(500, 2)

This strikes me as unexpected, it's not a documented behaviour. Any ideas?

cheers,
Andrew.


-- 
_____________________________________
Dr. Andrew Nelson


_____________________________________
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to