-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add pick_types to info #10035
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
Add pick_types to info #10035
Conversation
agramfort
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx @mscheltienne
I would just see if we can avoid the big copy paste of the docstring
|
How about a docdict entry grouping all parameters from |
|
I am -0.5 on this. I think for new and even intermediate users it will be too easy for them to accidentally do Currently to get the functionality in this PR, you can do I think if we really want to add this, we need to first add some way for an info to know if it has a parent instance. That way if you do There are some other potential advantages to tracking the parent, for example each |
|
That's a very good point.. However, tracking the parent will require a lot more work.. |
|
that's a very good point @larsorner !
I think now that this opens a pandora box...
I don't want to have to explain why raw.info.pick_types is not supposed to
work.
so in the end I would say that we should not have this...
sorry for encouraging you Mathieu ...
|
|
No problem 😉 I'll keep this one in mind for when |
|
I think I'm +1 for deprecating |
|
that would work for me
… |
I don't see why this method should be missing from Info (plus I actually encountered a case where I would have liked to have it). Docstrings are almost identical.. but not quite, which is why I didn't copy it with the decorator.