openyou / emokit

Open source driver for accessing raw data from the Emotiv EPOC EEG headset

Home Page:http://www.openyou.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove CSV library

opened this issue · comments

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.

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

It's been removed.