Back to the main page.
Bug 1353 - Problem with ft_chantype for Neuromag
| Status | CLOSED FIXED |
| Reported | 2012-03-01 17:45:00 +0100 |
| Modified | 2013-01-16 14:20:40 +0100 |
| Product: | FieldTrip |
| Component: | fileio |
| Version: | unspecified |
| Hardware: | PC |
| Operating System: | Windows |
| Importance: | P3 normal |
| Assigned to: | Jan-Mathijs Schoffelen |
| URL: | |
| Tags: | |
| Depends on: | |
| Blocks: | |
| See also: |
Vladimir Litvak - 2012-03-01 17:45:06 +0100
When reading a Neuromag fif file with the latest FT version I get: hdr = ft_read_header('n1_freq_trans_default.fif') 306 MEG channel locations transformed Opening raw data file n1_freq_trans_default.fif... Range : 85000 ... 654999 = 85.000 ... 654.999 secs Ready. Warning: could be Yokogawa system > In fileio\private\warning_once at 81 In fileio\private\ft_senstype at 279 In ft_chantype at 86 In ft_chantype at 494 In fileio\private\ft_datatype_sens at 128 In ft_read_header at 1595 hdr = label: {330x1 cell} nChans: 330 Fs: 1000 grad: [1x1 struct] unit: {1x330 cell} nSamples: 570000 nSamplesPre: 0 nTrials: 1 orig: [1x1 struct] chantype: {330x1 cell} chanunit: {330x1 cell} This comes down to the fact that in ft_chantype there is no code that can determine the channel types based on the grad. All the code there uses hdr.orig. As a result also hdr.grad.chantype is all 'unknown'.