Back to the main page.

Bug 2934 - keep a number of (external) channels constant when using ft_databrowser on MEG data

Reported 2015-07-17 11:58:00 +0200
Modified 2017-03-14 12:48:44 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
Depends on:
Blocks: 2314
See also:

Robert Oostenveld - 2015-07-17 11:58:35 +0200

Ricardo (CC) suggested an improvement on ft_databrowser, which is to keep a number of channels (such as EOG) constantly in view when browsing and paging (in small groups of channels) through 306 channel MEG data. Right now if you make a channel selection, and then page to the next group of channels (i.e. not horizontal paging but vertical paging), all channels are incremented with a certain amount.

Ricardo Bruña Fernández - 2015-07-17 13:17:12 +0200

(In reply to Robert Oostenveld from comment #0) Thank you, Robert, for opening this bug. I attach my (nasty) solution to the problem (for fieldtrip-20150219 version). It can for sure be upgraded. It includes the modification of the variable and its restoration. Modified lines end with '%#%' in my code and are around line 1473 and around line 1947.

Ricardo Bruña Fernández - 2015-07-17 13:19:11 +0200

Created attachment 723 Nasty solution to the problem Modified lines end with '%#%' in my code and are around line 1473 and around line 1947.

Jan-Mathijs Schoffelen - 2017-01-17 16:15:44 +0100

This took far too long to resolve, but it has been implemented as of Pull request 299. I took the liberty of changing a few small things: has been changed into cfg.channelclamped. Also, it should be specificied as an array of labels, rather than as a scalar number. Thanks for the suggestion!