ENH: Add event_key parameter to read_raw_egi for MFF event metadata - #14086
ENH: Add event_key parameter to read_raw_egi for MFF event metadata#14086PragnyaKhandelwal wants to merge 6 commits into
event_key parameter to read_raw_egi for MFF event metadata#14086Conversation
|
@PragnyaKhandelwal I pushed a commit that should hopefully get this over the line. The upshot is that the information we are trying to extract is user-defined metadata, and so we need to let the user tell us what metadata to look for. Look at the "Key List" description in EGI's SDK: https://www.egi.com/images/stories/manuals/amp-server-pro-sdk-3-0-network-apis-user-guide-rev-01.pdf For example in this testing file, we can see that the event name is So with this PR, we'd do |
cd2e9e8 to
74ed618
Compare
74ed618 to
f8ace1c
Compare
|
Nice improvement. Since the PR also stores the MFF event keys in At the moment, the test only verifies the derived annotation description, so a regression in |
|
@viranovskaya yes that is already on our radar. FYI this is part of an ongoing GSoC project that @PragnyaKhandelwal is leading. Some reviewer comments on these PR's occur in 1:1 pair programming sessions, and are not always immediately documented here. I think it's great that you are getting involved with the MNE project but your efforts would go further elsewhere, so that we don't duplicate efforts here! |
|
@scott-huberty Oh, right. Thanks for the context. I didn’t realise some of the review was happening outside the PR. I’ll step back from this one and look for an issue that isn’t already covered. :) |
Thanks @scott-huberty! Really appreciated your commit and the |
event_key parameter to read_raw_egi for MFF event metadata
f8ace1c to
16caa30
Compare
16caa30 to
cf19ab1
Compare
Reference issue (if any)
Part of #13926
What does this implement/fix?
EGI MFF event XML files can store arbitrary metadata in
<keys>child elements on each event (e.g.cel#written by E-Prime to identify experimental conditions). Previously MNE ignored this metadata.This PR adds an
event_keyparameter toread_raw_egi. When passed (e.g.event_key="cel#"), the value of that key is appended to the event code — soAM40withcel#=3becomesAM40_3in annotation descriptions and stim channel names. The raw key values are also stored inannotations.extrasasevent_key_<keyname>. Defaults toNoneso existing behaviour is unchanged.Additional information