meeg-ml-benchmarks / brain-age-benchmark-paper

M/EEG brain age benchmark paper
https://meeg-ml-benchmarks.github.io/brain-age-benchmark-paper/
BSD 3-Clause "New" or "Revised" License
24 stars 10 forks source link

compute_autoreject.py on TUAB erroring at epochs.pick_channels (line 62-68) #54

Closed anthonyromyn closed 2 years ago

anthonyromyn commented 2 years ago

Hey all,

What is meant by the comment on line 62 in compute_autoreject.py? https://github.com/meeg-ml-benchmarks/brain-age-benchmark-paper/blob/09075642182f7d6448e110a8eb1764b9e5364b38/compute_autoreject.py#L62-L68

I'm getting an error while running the TUAB data at line 68 so I thought maybe line 62 is related/the answer?

Thanks Anthony

agramfort commented 2 years ago

What is the error?

anthonyromyn commented 2 years ago

Here it is @agramfort

Screenshot (1348)

agramfort commented 2 years ago

can you try to debug? there must be a difference in data or mne/mne-bids versions between our systems

Message ID: @.*** com>

anthonyromyn commented 2 years ago

Yeah for sure, will dig into it and report back in the next few days.

anthonyromyn commented 2 years ago

Okay awesome it's working well now. Long story short I just needed to remove some extra name mismatching to compute_autoreject.py and it works wonderfully! Thanks!

    if any(ch.startswith('EEG ') for ch in epochs.ch_names):
        epochs.rename_channels(
            {ch: ch.strip('EEG ') for ch in epochs.ch_names})