mne-hcp icon indicating copy to clipboard operation
mne-hcp copied to clipboard

read_epochs produces error

Open sulyabtv opened this issue 7 years ago • 0 comments

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.

sulyabtv avatar Nov 16 '17 10:11 sulyabtv