-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MRG: Handle sidecar <> raw disparities in channels #823
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx !
you plan to add a test @hoechenberger ?
If you think this is good, I can add a test! @sappelhoff WDYT? Issue was that we had data with channels listed in the sidecar, which were not present in the raw. (HPI channels I believe. One could argue that these should be specified differently then -- which BIDS readily allows -- however we still have problematic datasets out in the wild we'll have to deal with...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like a good approach to me and I like the warnings. 👍
fceecab
to
7c21c5f
Compare
@sappelhoff @agramfort I've added tests, good to go from my end |
the KIT test fails because after writing, How shall we deal with this? |
Related: |
I am not 100% sure, but I thought that we wanted to stop synthesizing stim channels in MNE-Python🤔 or was that only for some particular cases (e.g., for EEG only data)? I think it'd be good to ignore any channels that MNE-Python synthesizes ... or stop it from automatically synthesizing them in the first place. |
@agramfort any insights on this one? |
My personal opinion is that since all events should be listed in the sidecar, MNE-BIDS could simply drop |
Sounds reasonable to me. If it's synthesized by MNE during reading, we wouldn't even have to log information about it. Else, an info/warning may be good. |
Thing is, I don't know if this channel is always synthesized (and for which file formats) … What I would propose is: Thoughts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, provided CIs pass, +1 to merge
thx @hoechenberger |
@agramfort feel free to take over, this seems to fix your problem
Merge checklist
Maintainer, please confirm the following before merging:
PR description includes phrase "closes <#issue-number>"