Back to the main page.

Bug 3215 - support method=nan for channelrepair

Status CLOSED FIXED
Reported 2016-12-02 10:04:00 +0100
Modified 2017-01-17 11:29:49 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2016-12-02 10:04:51 +0100

as discussed over email with Arjen. It makes sense to have this both in rejectvisual and in repairchannel. This is the test script for which it should work nchan = 3; ntrial = 5; nsample = 1000; data = []; for i=1:ntrial data.trial{i} = randn(nchan,nsample); data.time{i} = (1:nsample)/1000; end for i=1:nchan data.label{i} = num2str(i); end cfg = []; cfg.badchannel = '1'; cfg.method = 'nan'; data1 = ft_channelrepair(cfg, data); cfg = []; cfg.missingchannel = '4'; cfg.method = 'nan'; data2 = ft_channelrepair(cfg, data); cfg = []; cfg.badchannel = '1'; cfg.missingchannel = '4'; cfg.method = 'nan'; data3 = ft_channelrepair(cfg, data);


Robert Oostenveld - 2016-12-02 10:08:24 +0100

mac011> git commit ft_channelrepair.m [master 3e710ec] ENH - added support for method=nan, see http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3215. Furthermore, I made a change to the initial selection of badchannel and missingchannel (which was confusing) and cleaned up the code a bit. 1 file changed, 101 insertions(+), 71 deletions(-)


Robert Oostenveld - 2017-01-17 11:29:49 +0100

closed multiple bugs that were resolved some time ago