[Mne_analysis] HDF5

Rodriguez Ruiz, Andres andres.rodriguez at emory.edu
Tue Sep 29 16:11:06 EDT 2020
Search archives:

        External Email - Use Caution        

Dear all:

I am getting a raw object from a peryst EEG data. I am trying to take the raw data and save like this;

with h5py.File("C:\\Users\\Andres\\Desktop\\h5_data.h5", 'w') as hdf:
    hdf.create_dataset('Data1', data=raw)

But when I try to save it it gives me this error

~\anaconda3\envs\mne\lib\site-packages\mne\io\pick.py in _picks_to_idx(info, picks, none, exclude, allow_empty, with_ref_meg, return_kind)
   1030                          % (-n_chan, orig_picks))
   1031     if (picks >= n_chan).any():
-> 1032         raise ValueError('All picks must be < n_channels (%d), got %r'
   1033                          % (n_chan, orig_picks))
   1034     picks %= n_chan  # ensure positive

ValueError: All picks must be < n_channels (129), got 129

Any help ?

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10


This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200929/d8d054d3/attachment.html 

More information about the Mne_analysis mailing list