Repository navigation
Improve ICA component selection with the argument picks - #11369
Merged
Merged
Conversation
Member
Author
|
If this approach works for you, I'll add tests for |
larsoner
reviewed
Dec 14, 2022
Member
Author
|
How about adding a |
mscheltienne
commented
Dec 14, 2022
Member
Sure! |
larsoner
reviewed
Dec 14, 2022
larsoner
approved these changes
Dec 14, 2022
larsoner
left a comment
Member
There was a problem hiding this comment.
Marking for merge when green after a tiny latest.inc change, thanks @mscheltienne !
larsoner
enabled auto-merge (squash)
December 14, 2022 18:30
Member
Author
|
Hold that one, I'd like to improve a bit the error messages to differentiate between channel selection and component selection. |
mscheltienne
disabled auto-merge
December 14, 2022 18:31
Member
|
Sounds good -- FYI we plan to release Friday so getting it in tomorrow would be ideal! |
Member
Author
|
@larsoner Good to merge, the failure is not related. |
larsoner
enabled auto-merge (squash)
December 15, 2022 16:07
Member
|
Thanks @mscheltienne ! |
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.
Closes #11274
This PR improves the selection of IC with the argument
picks, especially making sure that the type and value provided are valid._check_pick_componentsinutils/check.py(do you want it elsewhere?)picks = _picks_to_idx(ica.info, picks)(which picks on the channel names!) with_check_pick_components(ica, picks)picksinica.plot_properties.In #11274, I wasn't sure in which context a Browser figure would open a Properties figure on click: right click on the IC name in
ica.plot_sources(inst)!