Repository navigation
BUG: Only use valid FIFF values for anonymization - #9175
Merged
Merged
Conversation
hoechenberger
force-pushed
the
anonymize
branch
from
March 20, 2021 21:59
853cb22 to
10d5e3c
Compare
hoechenberger
marked this pull request as ready for review
March 20, 2021 21:59
hoechenberger
force-pushed
the
anonymize
branch
from
March 20, 2021 22:02
10d5e3c to
a8fbc53
Compare
mne-toolsGH-9103 improved anonymization when `keep_his=False`; however, it would break I/O roundtrips because handedness and sex would be set to values that aren't supported by the FIFF specs.
hoechenberger
force-pushed
the
anonymize
branch
from
March 20, 2021 22:09
a8fbc53 to
462c9fb
Compare
Member
Author
|
@larsoner Circle still won't start for me, I've opened a ticket; hopefully they'll be able to resolve this soon. |
rob-luke
approved these changes
Mar 21, 2021
rob-luke
left a comment
Member
There was a problem hiding this comment.
Thanks for this. I hit this issue with MNE-BIDS yesterday too, so great that its addressed so quickly.
Member
|
Also FYI: with this fork all MNE-BIDS tests passed locally on my machine. |
Member
Author
|
@rob-luke Glad to hear it!! :) |
agramfort
approved these changes
Mar 21, 2021
Member
|
Thx @hoechenberger |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GH-9103 improved anonymization when
keep_his=False; however, it would break I/O roundtrips because handednessand sex would be set to values that aren't supported by the FIFF specs.
This PR changes the behavior such that anonymization sets
sex = 0(unknown) and entirely removeshand, as FIFFdoesn't specify an "unknown" handedness.
Also adds more testing coverage for Raw & Epochs I/O roundtrip after anonymization.
cc @Falach