Closed zeyus closed 2 years ago
since i've been working on my forked dn3 the main branch has extra commits now, i'll reopen this PR with a bugfix branch. of course if the changes i make turn out useful / work well, I'll create separate PRs for them.
If you specify events with names mapping to IDs, dn3 incorrectly maps the event name (string) to the classifier label, this fails with a
KeyError
like:The data in this case is stored in MNE fif files, and contains a stim channel with
int
markers which track a single sample where the stimuli was presented, I also tried using event IDs as a list without a name string, but the issue was the same.this PR maintains the mapping but uses the value rather than the key for the mapping.
Sample config yaml: