Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_epochs produces error #59

Open
sulyabtv opened this issue Nov 16, 2017 · 0 comments
Open

read_epochs produces error #59

sulyabtv opened this issue Nov 16, 2017 · 0 comments

Comments

@sulyabtv
Copy link

Hi, I am trying to read epochs of a StoryMath trial from the BUN matrix of tmegpreproc using the command

epochs = hcp.read_epochs(subject=subject, data_type=data_type, run_index=run_index, onset='block', hcp_path=hcp_path, return_fixations_motor=False)

But it produces the following error:

Traceback (most recent call last):
File "plot_compute_evoked_inverse_solution.py", line 40, in
epochs = hcp.read_epochs(subject=subject, data_type=data_type, run_index=run_index, onset='block', hcp_path=hcp_path, return_fixations_motor=False)
File "/usr/local/lib/python2.7/dist-packages/mne_hcp-0.1.dev12-py2.7.egg/hcp/io/read.py", line 575, in read_epochs
return_fixations_motor=return_fixations_motor)
File "/usr/local/lib/python2.7/dist-packages/mne_hcp-0.1.dev12-py2.7.egg/hcp/io/read.py", line 597, in _read_epochs
data = np.array(data['trial'].tolist().tolist())
ValueError: could not broadcast input array from shape (245,13630) into shape (245)

Reading the matrix happens fine but MNE-HCP expects a matrix of a different dimension than the one it finds. Please help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant