<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Fieldtrip users,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Currently I'm trying to interpolate EEG data from an EGI system using ft_channelrepair. I run into the same error as is described in this thread: <a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2014-March/033537.html">https://mailman.science.ru.nl/pipermail/fieldtrip/2014-March/033537.html</a> but
 can't seem to find the solution.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The error is the following:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(200, 38, 19); font-size: 10pt;">Error using ft_fetch_sens (line 203)</span>
<div><span style="color: rgb(200, 38, 19); font-size: 10pt;">no electrodes, gradiometers or optodes specified.</span></div>
<div><br>
</div>
<div><span style="color: rgb(200, 38, 19); font-size: 10pt;">Error in ft_channelrepair (line 129)</span></div>
<span style="color: rgb(200, 38, 19); font-size: 10pt;">    sens = ft_fetch_sens(cfg, data);</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It seems that the ft_prepare_neighbours works well, as the neighbours are described and make sense. The error occurs if I automatically detect the bad channel, if I manually define it, if I use any type of method. For example in the following script where row
 and column represent a specific channel and trial (which are correctly identified, and the cfg.badchannel shows the actual channel name)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p class="p1" style="margin: 0px; font: 10px Helvetica">            <span style="font-size: 11pt;">
       </span><span style="font-size: 10pt;">          cfg = [];</span></p>
<p class="p1" style="margin: 0px; font: 10px Helvetica"><span class="Apple-converted-space" style="font-size: 10pt;">                          
</span><span style="font-size: 10pt;">cfg.badchannel = datafinal_incl.label(row,1);</span></p>
<p class="p1" style="margin: 0px; font: 10px Helvetica"><span class="Apple-converted-space" style="font-size: 10pt;">                          
</span><span style="font-size: 10pt;">cfg.trials = column;</span></p>
<p class="p2" style="margin: 0px; font: 10px Helvetica; color: rgb(34, 139, 34)">
<span class="s1" style="color: rgb(0, 0, 0)"><span class="Apple-converted-space" style="font-size: 10pt;">                          
</span></span><span class="s1" style="color: rgb(0, 0, 0); font-size: 10pt;">cfg.method
</span><span class="s1" style="color: rgb(0, 0, 0)"><span class="Apple-converted-space" style="font-size: 10pt;">       
</span></span><span class="s1" style="color: rgb(0, 0, 0); font-size: 10pt;">= </span>
<span class="s2" style="color: rgb(160, 32, 240); font-size: 10pt;">'weighted'</span><span class="s1" style="color: rgb(0, 0, 0); font-size: 10pt;">; </span></p>
<p class="p1" style="margin: 0px; font: 10px Helvetica"><span class="Apple-converted-space" style="font-size: 10pt;">                          
</span><span style="font-size: 10pt;">cfg.neighbours </span><span class="Apple-converted-space" style="font-size: 10pt;">   
</span><span style="font-size: 10pt;">= neighbours;</span></p>
<p class="p1" style="margin: 0px; font: 10px Helvetica"><span class="Apple-converted-space" style="font-size: 10pt;">                          
</span><span style="font-size: 10pt;">data_fixed{1,column} = ft_channelrepair(cfg,datafinal_incl);</span></p>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: calibri, arial, helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">Does anyone know what the error and possible solution might be?</span></div>
<div style="font-size: 12pt; color: rgb(0, 0, 0);"><font face="calibri, arial, helvetica, sans-serif">Thank you for your help!</font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Carlijn</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div></div>
<div></div>
<div></div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="1"><span style="font-size:10pt">Dr. Carlijn van den Boomen </span></font></div>
<div style="font-family:Tahoma; font-size:13px"><font size="1"><span style="font-size:10pt"><br>
</span><span style="font-size:10pt"></span></font></div>
<div style="font-family:Tahoma; font-size:13px"><font size="1"><span style="font-size:10pt">Departments of Developmental and Experimental Psychology | Utrecht University | Langeveld Building - room H066 | Heidelberglaan 1 | 3584 CS Utrecht | the Netherlands
 | phone: +31(30) 253 1266 </span></font></div>
<div style="font-family:Tahoma; font-size:13px"><font size="1"><span style="font-size:10pt"><br>
</span><span style="font-size:10pt"></span></font></div>
<div style="font-family:Tahoma; font-size:13px"><font size="1"><span style="font-size:10pt">Cluster Chair | University College Utrecht </span><span style="font-size:10pt"><span style="font-family:Tahoma; background-color:rgb(255,255,255); display:inline!important; font-size:10pt">|
 Newton building room Hh | the Netherlands</span><span style="font-family:Tahoma; background-color:rgb(255,255,255); display:inline!important"><span style="font-size:10pt"> | phone: +31(30) 253 9826 | in office on Tuesday and Wednesday</span></span></span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>