[Mne_analysis] -trans.fif

dgw dgwakeman at gmail.com
Wed Feb 26 17:55:57 EST 2014
Search archives:

Hi,

I'm playing around with trans.fif files, and I have found some strange
behavior. First, if you generate a quick trans.fif file with the
sample data in mne_analyze. you cannot read it in with MNE-Python
utilizing mne.read_trans . I am not sure if this problem is due to
mne_analyze creating bad fif files or an MNE-Python bug.

Here is the mne.read_trans error:
test = mne.read_trans('sample_audvis_raw-trans.fif')
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-6-8f82339f2100> in <module>()
----> 1 test = mne.read_trans('sample_audvis_raw-trans.fif')

/usr/pubsw/packages/python/epd-7.3-1-rh5-x86_64/lib/python2.7/site-packages/mne-0.7.1-py2.7.egg/mne/transforms.pyc
in read_trans(fname)
    254     info = {}
    255     fid, tree, _ = fiff_open(fname)
--> 256     block = dir_tree_find(tree, FIFF.FIFFB_MNE)[0]
    257
    258     tag = find_tag(fid, block, FIFF.FIFF_COORD_TRANS)

IndexError: list index out of range

If I go into the file in either mne-python or mne-matlab, I find that
the block number is 0. This looks a little suspicious to me, as I
didn't believe block numbers could be 0, but I may be wrong. Any
thoughts?

D



More information about the Mne_analysis mailing list