set_eeg_reference is broken for rawEDF objects after moving to mne.io !
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 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.
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 no problem, better a usage-error than a bug ;-)