Hi, I am getting the following error message: C:\Python27\lib\site-packages\numpy\lib\npyio.py:819: UserWarning: loadtxt: Empty input file: "[]" warnings.warn('loadtxt: Empty input file: "%s"' % fname) main loop list assignment index out of range 1. Why is it happening? 2. How can I fix it? Thanks a lot in advance. Danny
On 14.03.2015, at 10:57, Danny Kramer <danny_52@netvision.net.il> wrote:
Hi, I am getting the following error message:
C:\Python27\lib\site-packages\numpy\lib\npyio.py:819: UserWarning: loadtxt: Empty input file: "[]" warnings.warn('loadtxt: Empty input file: "%s"' % fname) main loop list assignment index out of range
1. Why is it happening? 2. How can I fix it?
Thanks a lot in advance.
Danny
Not seeing the code that produced this warning, we are left to guessing. My guess would be that the error warning tells you already what's going on. You give an empty list as a file name to loadtxt and loadtxt can't find a file of that name to load. Hanno
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (2)
-
Danny Kramer
-
Hanno Klemm