[Mne_analysis] IndexError: index out of bounds

Eric Larson larson.eric.d at gmail.com
Thu Jan 7 10:12:37 EST 2016
Search archives:

I suspect that the file might be partial/truncated. Does it open properly
with the C tools (e.g., mne_browse_raw) and can you view all of your data
scrolling to the end?

If you can share a link to the file privately somewhere we can also take a
look. You can use `mne_anonymize` in the C tools to anonymize it first if
need be.

Eric


On Thu, Jan 7, 2016 at 10:08 AM, Warner, Graham Cary <
GWARNER at mgh.harvard.edu> wrote:

> Hi all,
>
> I'm having trouble opening
> /space/lilli_003/users/DARPA-TRANSFER/meg/hc004/008/hc004_rcl_raw.fif. The
> error message when I try to open it with
>
> raw = Raw('hc004_rcl_raw.fif',verbose=False,preload=False)
>
> is
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "<string>", line 2, in __init__
>   File
> "/space/jazz/1/users/gwarner/anaconda/lib/python2.7/site-packages/mne/utils.py",
> line 546, in verbose
>     return function(*args, **kwargs)
>   File
> "/space/jazz/1/users/gwarner/anaconda/lib/python2.7/site-packages/mne/io/fiff/raw.py",
> line 94, in __init__
>     do_check_fname)
>   File "<string>", line 2, in _read_raw_file
>   File
> "/space/jazz/1/users/gwarner/anaconda/lib/python2.7/site-packages/mne/utils.py",
> line 549, in verbose
>     return function(*args, **kwargs)
>   File
> "/space/jazz/1/users/gwarner/anaconda/lib/python2.7/site-packages/mne/io/fiff/raw.py",
> line 150, in _read_raw_file
>     ff, tree, _ = fiff_open(fname, preload=whole_file)
>   File "<string>", line 2, in fiff_open
>   File
> "/space/jazz/1/users/gwarner/anaconda/lib/python2.7/site-packages/mne/utils.py",
> line 549, in verbose
>     return function(*args, **kwargs)
>   File
> "/space/jazz/1/users/gwarner/anaconda/lib/python2.7/site-packages/mne/io/open.py",
> line 131, in fiff_open
>     tag = read_tag(fid, dirpos)
>   File
> "/space/jazz/1/users/gwarner/anaconda/lib/python2.7/site-packages/mne/io/tag.py",
> line 234, in read_tag
>     tag = Tag(*np.fromstring(s, dtype='>i4,>u4,>i4,>i4')[0])
> IndexError: index out of bounds
>
> The other files from this session open without issue so I have not idea
> what is special about this one. Can anyone shed some light on this?
>
> Thank you,
> Graham
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160107/ea043218/attachment.html 


More information about the Mne_analysis mailing list