# HG changeset patch # User James Bergstra # Date 1269055898 14400 # Node ID 09212b8a1eddb33f8a8ed6b162837fc4f81a8d05 # Parent a9b043c032ea7b86d77ffeda7a7f2e913099a866 bugfix in majorminer - must trim newline chars from each line diff -r a9b043c032ea -r 09212b8a1edd pylearn/datasets/majorminer.py --- 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: