<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Craig,
<div class="">There are a few open bugs about this on <a href="http://bugzilla.fieldtriptoolbox.org" class="">bugzilla.fieldtriptoolbox.org</a> (2331 and 2404). We are moving away from bugzilla (and try to switch more to github issues), but the the currently
 open ones still contain some knowledge and history that’s worth to be looked into. Moreover, their resolution might be documented there as well.</div>
<div class="">I am not sure whether your old esi-e-mailaddress still works, that’s the one with which you are subscribed to bugzilla, but if not, I suggest that you update your e-mailaddress, so that you can check what has been documented regarding the issue
 you raise. Subsequently, you can work with us towards a solution, which eventually will end up as a pull request on the github repo.</div>
<div class=""><br class="">
</div>
<div class="">As a side note, I am wondering why you’d want to use ft_channelrepair on MEG data. I could think of the functionality being useful occasionally in EEG, but not in MEG.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class=""><br class="">
</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On 5 Apr 2019, at 19:05, Craig Richter <<a href="mailto:craiggrichter@gmail.com" class="">craiggrichter@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hey FTers,<br class="">
<br class="">
It appears that when a data structure with missing channels is entered into ft_channelrepair, the function is using the input data to determine the sens structure. Since the data is missing channels, the sens structure is also missing these channels, and no
 interpolation occurs, but no errors are thrown. It states that it was successful. The work-around is to provide a cfg.layout, or cfg.grad to ft_channelrepair, such that ft_fetch_sens does not depend on the input data and returns with a full sensor array, but
 in this case, the grad info in the data is lost. This appears to be a bug, though
<a href="http://www.fieldtriptoolbox.org/example/fixing_a_missing_sensor/" class="">
http://www.fieldtriptoolbox.org/example/fixing_a_missing_sensor/</a> would indicate this is the intended behaviour. Perhaps an error, or warning message should be generated. Also, the grad info is largely lost after interpolation except for chanpos and chanori.
 Is there no way to interpolate all the grad info, such that it is not lost (i.e. tra, and the coil data)?<br class="">
<br class="">
Any suggestions would be great!<br class="">
<br class="">
Thanks!<br class="">
<br class="">
C.<br class="">
<br class="">
Best,<br class="">
<br class="">
C.<br class="">
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>