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

set_eeg_reference is broken for rawEDF objects after moving to mne.io !

Open haribharadwaj opened this issue 12 years ago • 3 comments

So I recently pulled from the latest master which stops supporting mne.fiff imports... The following now breaks:

from mne.io import edf, set_eeg_reference
raw = edf.read_raw_edf(edfname, n_eeg=nchans, preload=True,
                           hpts=hptsname, stim_channel='Status')
refchans = ['A1', 'A2']  # Just an example
(raw, ref_data) = set_eeg_reference(raw, refchans, copy=False)

with the error:

AttributeError: 'module' object has no attribute 'fiff'

Importing from mne.fiff used to work fine but that's not possible any more... Any thoughts on how to quickly fix this? @t3on, @dengemann, @agramfort

haribharadwaj avatar Aug 29 '14 17:08 haribharadwaj

@haribharadwaj we deprecated mne.fiff and then removed it as announced ... no mne.fiff. Use mne.io instead. This error shows that some code somewhere hasn't been updated and still calls to mne.fiff .... this must be fixed.

dengemann avatar Aug 29 '14 17:08 dengemann

Sorry... My bad... Ignore issue... Had updated local files on disk to import mne.io instead of mne.fiff but had not done a reload(.) of them..

haribharadwaj avatar Aug 29 '14 17:08 haribharadwaj

@haribharadwaj no problem, better a usage-error than a bug ;-)

dengemann avatar Aug 29 '14 18:08 dengemann