read_indo

Dear MNE users,

I'm using the read_info function and it seems that
n the Info instance there isn't the 'filename' field.

Is there a reason for this?

thks!
best
Annalisa

hi,

you mean the info read does not say from which file it comes from?

Alex

Hi Alex,

yes.

If I read the raw file by read_raw_fif I have the field
raw.info['filename']

while if I use read_info there I get an error when I try to
access the filename field

info['filename']

thks
Annalisa

Alexandre Gramfort <alexandre.gramfort at telecom-paristech.fr> ha scritto:

indeed it's only set for the fif reader:

https://github.com/mne-tools/mne-python/blob/master/mne/io/fiff/raw.py#L186

I guess we could/should fix this.

Alex

ok!

thks!

best
Annalisa

Alexandre Gramfort <alexandre.gramfort at telecom-paristech.fr> ha scritto: