This repository has been archived by the owner on Jul 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
TypeError: 'numpy.float64' object cannot be interpreted as an index #16
Comments
@siddnus Hi, I just occurred the same problem with numpy 1.15.0 on Ubuntu python 2.7 . Have you solved the issue yet? |
@terminator9487 Hi.. I don't remember the exact solution now, but I think converting offset to int before passing it solved my issue. x, y = offset Can you try this? |
Thanks for your answer. And,the problem was solved! |
Hi @terminator9487 , Sorry for the late reply, what was the solution in your case? |
Just adding the code you mentioned before. offsetsX,offsetY = offsets |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When running ex_csp_motor_imagery.py, getting error at line 36
trials, _ = eegtools.featex.windows(d.events[1], offsets, d.X)
W = np.zeros((ii.size, p, end - begin)) * np.nan
Numpy installed version is numpy-1.13.1+mkl
Tried with physionet data using edfplus, getting same error.
Error log:
trials, st = eegtools.featex.windows(start, offset, filt_data)
File "C:\Python27\lib\site-packages\eegtools\featex.py", line 65, in windows
W = np.zeros((ii.size, p, end - begin)) * np.nan
TypeError: 'numpy.float64' object cannot be interpreted as an index
The text was updated successfully, but these errors were encountered: