Changeset 452

Show
Ignore:
Timestamp:
08/23/10 13:48:30 (18 months ago)
Author:
bruederle
Message:

BUG FIX: in function get_data(), reading files with a header but no spikes crashed due to missing end-of-list check

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/io.py

    r446 r452  
    181181            header = True 
    182182            idx    = 0 
    183             while header: 
     183            while header and idx < len(contents): 
    184184                if contents[idx][0] != skipchar: 
    185185                    header = False