[Mne_analysis] ctf file issues

Denis-Alexander Engemann denis.engemann at gmail.com
Wed Jul 30 12:15:32 EDT 2014
Search archives:

Hi will,

could you share a small snippet (e.g. 100 ms) of your data like that:

raw.crop(None, 0.1)
raw.save('my-ctf-raw.fif')

I suspect there is some channel type in your data whic is not classified as
one of these:

['eeg', 'eog', 'ecg', 'emg', 'ref_meg', 'stim', 'resp', 'misc', 'chpi',
'syst', 'ias', 'exci']

Maybe your reference channels are not marked as such.
You could try to identify them by name and remove them just for the purpose
of plotting using

`raw.drop_channels(channel_names)`

Best,
Denis

On Wed, Jul 30, 2014 at 6:00 PM, <wgraves at psychology.rutgers.edu> wrote:

> Hello MNE Experts,
>
> In trying to deal with CTF files for the first, time I'm running into some
> issues that I don't understand and hope someone can easily help with. I
> used the mne_ctf2fiff command to convert to fiff, but I can't visualize
> the resulting file in mne_browse_raw (it loads without error but just
> looks blank). Similarly, all the steps for loading a segment of the file
> as raw data in mne_python work without error, until I do "raw.plot()",
> when I get this error:
>
> In [20]: raw.plot()
> ---------------------------------------------------------------------------
> RuntimeError                              Traceback (most recent call last)
> <ipython-input-20-d4ffb847f525> in <module>()
> ----> 1 raw.plot()
>
> /home/wgraves/data/ld_meg/scripts/src/mne/mne/fiff/base.pyc in plot(raw,
> events, duration, start, n_channels, bgcolor, color, bad_color,
> event_color, scalings, remove_dc, order, show_options, title, show, block)
>     846         return plot_raw(raw, events, duration, start, n_channels,
> bgcolor,
>     847                         color, bad_color, event_color, scalings,
> remove_dc,
> --> 848                         order, show_options, title, show, block)
>     849
>     850     @verbose
>
> /home/wgraves/data/ld_meg/scripts/src/mne/mne/viz.pyc in plot_raw(raw,
> events, duration, start, n_channels, bgcolor, color, bad_color,
> event_color, scalings, remove_dc, order, show_options, title, show, block)
>    2778     inds = np.concatenate(inds).astype(int)
>    2779     if not len(inds) == len(info['ch_names']):
> -> 2780         raise RuntimeError('Some channels not classified, please
> report '
>    2781                            'this problem')
>    2782
>
> RuntimeError: Some channels not classified, please report this problem
>
> Unfortunately, the data were collected in short epochs keyed to the events
> rather than continuously. My original plan was to use
> mne.fiff.concatenate_raws to concatenate across epochs/events, but I
> couldn't figure out how to make that work either (perhaps because I don't
> know what the "raw" argument is supposed to look like, and I can't find an
> example).
>
> Anyway, I would gratly appreciate any help or insight anyone can share.
>
> Thanks,
> Will
>
> _______________________________________________
> 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/20140730/1c728dad/attachment.html 


More information about the Mne_analysis mailing list