Difference between np.loadtxt depending on whether you supply a file object or a filename
20 Aug
2012
20 Aug
'12
10:55 a.m.
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 _____________________________________
4238
Age (days ago)
4238
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andrew Nelson
-
Sebastian Berg