Back to the main page.
Bug 985 - ft_chantype does not recognize headcoil sensors as such
Status | CLOSED WORKSFORME |
Reported | 2011-09-22 16:03:00 +0200 |
Modified | 2019-08-10 12:40:30 +0200 |
Product: | FieldTrip |
Component: | realtime |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P1 normal |
Assigned to: | Jörn M. Horschig |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Jörn M. Horschig - 2011-09-22 16:03:59 +0200
Thus, I hacked ft_realtime_headlocalization to get the headcoils out. However, ft_chantype should recognize the HLC sensors as such. Preliminary solution in ft_realtime_headlocalization: chanindx = strmatch('headloc', ft_chantype(hdr)); % this is a mere hack for the Donders MEG system, I assume a bug in % chantype - Jörn if isempty(chanindx) chanindx = strmatch('HLC', hdr.label); end
Jan-Mathijs Schoffelen - 2011-10-05 09:40:33 +0200
I think this is a good suggestion. Let's discuss in FT-meeting
Jörn M. Horschig - 2011-10-11 16:14:29 +0200
It is a bit strange, because either ft_chantype(hdr) can detect headcoils when reading data on disc or this bug has been fixed. I am 100% sure that it broke in the MEG scanner when using the buffer.
Jörn M. Horschig - 2012-11-28 17:57:39 +0100
I hereby confirm again that it breaks in the lab while using the buffer. In my personal headlocalizer script (which is Arjen's script + the possibility to make a one frame snapshot only rather than a continuous loop) I solved it this way: [~, chanindx] = match_str('headloc', hdr.orig.chantype);
Robert Oostenveld - 2017-03-27 10:30:30 +0200
The ft_realtime_headlocalization function has been running in the DCCN MEG lab for quite some time. So I guess this bug is not pertinent any more.
Robert Oostenveld - 2019-08-10 12:34:20 +0200
This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on https://github.com/fieldtrip/fieldtrip/issues.