bci-challenge-ner-2015
bci-challenge-ner-2015 copied to clipboard
TypeError: slice indices must be integers or None or have an __index__ method
mldl@mldlUB1604:~/ub16_prj/bci-challenge-ner-2015/preproc$ python preproc.py
../data/train/Data_S02_Sess01.csv
Traceback (most recent call last):
File "preproc.py", line 60, in
I'm having the same error. Does anyone know the solution?
epoc_window is a real value, whereas the indices must be integer values, so a simple solution is to convert the epoc_window type by calling int function: int(epoc_window).