MIT-LCP / physionet

A collection of tools for working with the PhysioNet repository.
http://physionet.org/
MIT License
69 stars 17 forks source link

parser in 10.5.24 wrsamp is broken #71

Open wcray opened 6 years ago

wcray commented 6 years ago

Just so that someone else who has a 10.5.24 (actually, I suspect .23 and later) binary doesn't spend two weeks pulling their hair out like I just did...

The parser in 10.5.24 wrsamp incorrectly tokenizes data lines that contain square-bracket-enclosed date stamps. Because it treats a space character as a valid token delimiter, and doesn't recognize square brackets as "quoting" tokens that contain delimiters, wrsamp breaks the date stamp into two separate tokens, causing the column-indexing for selecting data columns to be off-by-one.