Skip to content

[FIX] Fix channel-picking in _calculate_head_pos_ctf - #5964

Merged
larsoner merged 2 commits into
mne-tools:masterfrom
jeythekey:calculate_head_pos_ctf-fix
Feb 20, 2019
Merged

larsoner merged 2 commits into
mne-tools:masterfrom
jeythekey:calculate_head_pos_ctf-fix

Conversation

@jeythekey

Copy link
Copy Markdown
Contributor

This PR consists of exactly one character of code, which had to be removed from the matching pattern in order to match CTF headloc channels of data loaded with the clean_names option set to True. See comment in #4088.

… pattern in order to also match chnannels loaded with the option set to True.
@codecov

codecov Bot commented Feb 20, 2019

Copy link
Copy Markdown

Codecov Report

Merging #5964 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5964   +/-   ##
=======================================
  Coverage   88.79%   88.79%           
=======================================
  Files         401      401           
  Lines       72721    72721           
  Branches    12158    12158           
=======================================
  Hits        64575    64575           
  Misses       5218     5218           
  Partials     2928     2928

@larsoner
larsoner merged commit 0990196 into mne-tools:master Feb 20, 2019
@larsoner

Copy link
Copy Markdown
Member

Thanks @jeythekey

@jeythekey

Copy link
Copy Markdown
Contributor Author

Welcome. I guess no whats_new.rst needed for that?

@larsoner

Copy link
Copy Markdown
Member

Yes as it's a private function. If enough people use it successfully we should make it public.

@jeythekey

Copy link
Copy Markdown
Contributor Author

Yes, I would definitely vote for making it at least semi-public in the meantime (e.g. only mention it in the docstring somehwere). It took me a long journey to find this functionality (because it is nowhere clearly documented, where exactly the headloc-data comes from and you have no clue if you are not using an Electra system).

@larsoner

Copy link
Copy Markdown
Member

We could make it public but say that it's currently experimental status. We could do the same with _calculate_chpi_positions. But really before that we should see how much those can be deduplicated.

@jeythekey
jeythekey deleted the calculate_head_pos_ctf-fix branch February 20, 2019 17:38
@jeythekey
jeythekey restored the calculate_head_pos_ctf-fix branch February 21, 2019 11:27
@jeythekey
jeythekey deleted the calculate_head_pos_ctf-fix branch April 26, 2019 19:04
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.

2 participants