openyou / emokit

Open source driver for accessing raw data from the Emotiv EPOC EEG headset
http://www.openyou.org
Other
521 stars 235 forks source link

Remove CSV library #247

Closed ghost closed 7 years ago

ghost commented 7 years ago

This CSV library was indeed a mistake, it needs to go.

Detecting the end of the file is near impossible, or I'm not looking in the right place, it throws stop iteration unexpectedly...

It's pretty much garbage IMO.

minifiredragon commented 7 years ago

Does this help? Basically you only know you've run out after you've run out. So you could wrap the reader iterator, e.g. as follows:

def isLast(itr): old = itr.next() for new in itr: yield False, old old = new yield True, old

ghost commented 7 years ago

It's been removed.