Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

TypeError: 'numpy.float64' object cannot be interpreted as an index #16

Description

@siddharthdeshmukh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions