-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow adding pipeline.flaggedChs
to raw.info['bads']
#72
Comments
I think these things should remain separate (for various reasons including the philosophy behind lossless and the fact that there is a degeneracy when we go from FlaggedChs to info["bads"]) but we should provide utilities to help to make the bridge (i.e., something like |
I was also thinking we could add a kwarg to I don't think any info is lost. The reason for it being flagged is still in flaggedChs. Also +1 for a helper function. |
The |
Yeah I think this is a nice solution. Glad we could find some common ground 😉 |
is there any updates to this now that flagging has changed formats slightly? @scott-huberty |
So We landed on following lossless's historical step of requiring a deliberate purge of annotations. But practically speaking, so far all user (us) just want to purge the annotations. So We need to add a helper function to the pipeline to convert flags to bads, and make the default behavior of the pipeline to call this function at the end of the run, that a user could set to False to disable. The routine would be Something like:
I started the code for this on another branch. I could push it up this week hopefully? |
I imagine there is going to be disagreement on this so I want to get the conversation started:
If I run the code in
test/test_simulated.py
I get this:bad
. Annotations are saved directly in the file when exporting to.edf
.pipeline.FlaggedChs
This is inconsistent and confusing. Right now the user will see some of the pipelines decision in their file and need to add extra boilerplate to see the flagged channels.
Also QCGUI does nothing with flaggedChs after loading, and MNEVisualizer only knows about raw.info['bads'], so the dashboard doesnt show the pipelines decisions on channels right now and if the user clicks on a channel, it is added to raw.info['bads'], not flaggedChs.
I think the closer we integrate with MNE here the better. I think the FlaggedChs.tsv file is necessary but lets not make everyone life harder with more boilerplate just to see decisions on their data that aren't even destructive, for the sake of purity.
The text was updated successfully, but these errors were encountered: