changeset 917:09212b8a1edd

bugfix in majorminer - must trim newline chars from each line
author James Bergstra <bergstrj@iro.umontreal.ca>
date Fri, 19 Mar 2010 23:31:38 -0400
parents a9b043c032ea
children bb8ef344d0a9
files pylearn/datasets/majorminer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/datasets/majorminer.py	Fri Mar 19 23:30:50 2010 -0400
+++ b/pylearn/datasets/majorminer.py	Fri Mar 19 23:31:38 2010 -0400
@@ -28,7 +28,7 @@
 
     for line in open(tagfile):
         if line:
-            tag, count, track = line.split('\t')
+            tag, count, track = line[:-1].split('\t')
             tag_count_track.append((tag, int(count), os.path.join(trackroot, track)))
 
     if expected_tagfile_len: