Skip to content

[MRG] anonymize sex and hand when keep_his is false - #9103

Merged
agramfort merged 8 commits into
mne-tools:mainfrom
Falach:anonymize_his
Mar 18, 2021
Merged

agramfort merged 8 commits into
mne-tools:mainfrom
Falach:anonymize_his

Conversation

@Falach

@Falach Falach commented Mar 16, 2021

Copy link
Copy Markdown
Contributor

Reference issue

Fixes #8130

What does this implement/fix?

when keep_his = false it's also anonymize hand and sex

Additional information

I updated the relevant tests as well

@drammock drammock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think the Circle failure is one we already fixed on main (@larsoner is that right?)

In which case this should be good to go.

@sappelhoff sappelhoff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm and I think it's a good idea to drop all HIS info if "keep_his" is False.

I didn't look into the circle issue, assuming that it's fixed in main.

@drammock

drammock commented Mar 16, 2021 •

Copy link
Copy Markdown
Member

I've pushed a commit that merges the current upstream/main branch into this branch, to see if it fixes the CircleCI error. @Falach if you need to do any more updates to this branch, you should first do

git fetch origin
git merge origin/anonymize_his

before making more local changes

@agramfort agramfort left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you just add a what's new entry to document this change? thx @Falach

@sappelhoff

Copy link
Copy Markdown
Member

@Falach you have a circleci issue:

changes/latest.inc:120: WARNING: Unknown target name: "rotem falach".

The problem is that sphinx doesn't know about your name yet. Could you please add it to this file (roughly alphabetically)?

.. _Andrea Brovelli: http://www.int.univ-amu.fr/_BROVELLI-Andrea_?lang=en

And if this is your first entry in the changelog, please also add a mapping of your name like here:

Current (0.23.dev0)
-------------------
.. |New Contributor| replace:: **New Contributor**
.. |Anna Padee| replace:: **Anna Padee**
.. |Richard Koehler| replace:: **Richard Koehler**
.. |Zhi Zhang| replace:: **Zhi Zhang**
.. |Andres Rodriguez| replace:: **Andres Rodriguez**
.. |Matt Sanderson| replace:: **Matt Sanderson**
.. |Enrico Varano| replace:: **Enrico Varano**
.. |Dominik Welke| replace:: **Dominik Welke**
.. |Judy D Zhu| replace:: **Judy D Zhu**
.. |Valerii Chirkov| replace:: **Valerii Chirkov**
.. |Matteo Anelli| replace:: **Matteo Anelli**

Comment thread doc/changes/latest.inc Resolved
Co-authored-by: Stefan Appelhoff <[email protected]>
@Falach

Falach commented Mar 17, 2021

Copy link
Copy Markdown
Contributor Author

I've pushed a commit that merges the current upstream/main branch into this branch, to see if it fixes the CircleCI error. @Falach if you need to do any more updates to this branch, you should first do

git fetch origin
git merge origin/anonymize_his

before making more local changes

I swear I did it and it failed again! :(

Comment thread doc/changes/latest.inc Resolved
Co-authored-by: Alexandre Gramfort <[email protected]>
@sappelhoff

Copy link
Copy Markdown
Member

@Falach it fails because you have not yet implemented the changes I describe here: #9103 (comment)

@drammock

Copy link
Copy Markdown
Member

I think this will still fail, because our changelog is actually quite complicated (sorry). You will need to add yourself to doc/changes/names.inc, and also at the top of doc/changes/latest.inc add a special replacement line for new contributors. @Falach if you're having trouble getting the local branch in sync with this PR, let me know and I can push the necessary changes.

@sappelhoff

sappelhoff commented Mar 17, 2021 •

Copy link
Copy Markdown
Member

@Falach you can look at the commits ebf1dc4 and 0429750 that I just made on your branch. this is what I tried to express with my comment #9103 (comment) - sorry if that didn't come across.

Dan is right, our changelog is slightly complicated :-)

EDIT: Also +1 to Dan's comment regarding help if your local branch and the remote branch (this PR) are out of sync --> let us know if you need help with re-syncing!

@agramfort agramfort left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you just see why CIs are red?

thx @Falach !

@sappelhoff sappelhoff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I found a tiny issue in latest.inc that I am going to fix here with a suggestion.

I think we can merge afterwards.

Comment thread doc/changes/latest.inc Resolved
@sappelhoff sappelhoff changed the title anonymize sex and hand when keep_his is false [MRG] anonymize sex and hand when keep_his is false Mar 18, 2021
@agramfort
agramfort merged commit 050a1f3 into mne-tools:main Mar 18, 2021
@agramfort

Copy link
Copy Markdown
Member

thx @Falach

hoechenberger added a commit to hoechenberger/mne-python that referenced this pull request Mar 20, 2021
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 added a commit to hoechenberger/mne-python that referenced this pull request Mar 20, 2021
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 added a commit to hoechenberger/mne-python that referenced this pull request Mar 20, 2021
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 added a commit to hoechenberger/mne-python that referenced this pull request Mar 20, 2021
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.
agramfort pushed a commit that referenced this pull request Mar 21, 2021
GH-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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

anonymize also sex and hand

4 participants