-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Metadata-based querying of Epochs is very powerful. For example, these work:
import mne
path_kword = mne.datasets.kiloword.data_path() + '/kword_metadata-epo.fif'
kword = mne.read_epochs(path_kword)
kword["NumberOfLetters == 4 & ConsonantVowelProportion < .5"], kword["WORD == 'area'"]
But what doesn't work is pulling a variable from the current scope with @:
word = 'area'
kword.metadata.query("WORD == @word")
This works, in Pandas. But this errors:
kword["WORD == @word"]
Would be cool to have!
Metadata
Metadata
Assignees
Labels
No labels