Set all types to False in pick_types
See original GitHub issueWould it make sense to set all arguments in pick_types
to False
by default? In other words, currently everything is False
except for meg
. I know where this is coming from, but for people working with EEG, NIRS, or other non-MEG signals, we always have to include meg=False
in addition to e.g. eeg=True
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:15 (15 by maintainers)
Top Results From Across the Web
Documentation - Utility Types - TypeScript
Constructs a type with all properties of Type set to optional. This utility will return a type that represents all subsets of a...
Read more >Make PickType and OmitType allow optional properties ...
I get Id and password out of response but back in the schema since properties are automatically decorated with 'ApiProperty' by the plugin....
Read more >Using 'Pick' in TypeScript to simplify Types and Interfaces
In this post you'll learn how to use Pick in TypeScript to help clean up your codebase and make your type management far...
Read more >Mapped Types - OpenAPI - A progressive Node.js framework
The PickType() function constructs a new type (class) by picking a set of properties from an input type. For example, suppose we start...
Read more >Typescript Redux - Typing of initialState with CreateSlice
No, you must declare a type for your initialState . That's how createSlice interprets the actual type of state for the rest of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Updated table based on @cbrnr’s and @agramfort’s comments – hope I copied everything correctly.
pick_types()
callmaster
behaviorpick_types(meg=False, eeg=True)
pick_types()
pick_types(eeg=True)
pick_types()
pick_types(eeg=True)
pick_types()
pick_types(meg=True)
The next release (0.21) should behave identically to 0.20, but a
DeprecationWarning
should be raised (something like “The defaults of pick_types will change in the next release. All signal types will be set to False by default (currently, meg=True by default).”).Release 0.22 should implement the new behavior. Your examples will be:
If you have EEG/MEG:
If you have EEG:
If you have MEG: