Back to the main page.
Bug 1409 - ft_selectdata_new removes dimord field
| Status | CLOSED FIXED |
| Reported | 2012-04-06 21:33:00 +0200 |
| Modified | 2012-07-07 20:24:27 +0200 |
| Product: | FieldTrip |
| Component: | core |
| Version: | unspecified |
| Hardware: | Macintosh |
| Operating System: | Mac OS |
| Importance: | P3 normal |
| Assigned to: | Jan-Mathijs Schoffelen |
| URL: | |
| Tags: | |
| Depends on: | |
| Blocks: | |
| See also: |
Matt Mollison - 2012-04-06 21:33:28 +0200
Using fieldtrip-20120405 Problem: I want to remove a bad channel from my data struct. When I define my cfg to remove the channel (cfg.channels=ft_channelselection({'all' '-E59'}, data.label)), ft_selectdata (which runs ft_selectdata_new) removes the dimord field. Many ft_* functions require dimord (e.g., ft_multiplotER, ft_timelockgrandaverage). Hard-coded solution: Include 'dimord' in the keepfields function call (ft_selectdata_new, line 193)