Back to the main page.
Bug 3201 - ft_read_header and/or ft_read_sens cannot get elec and grad information
Status | CLOSED FIXED |
Reported | 2016-11-03 15:51:00 +0100 |
Modified | 2017-01-17 11:29:44 +0100 |
Product: | FieldTrip |
Component: | fileio |
Version: | unspecified |
Hardware: | PC |
Operating System: | Linux |
Importance: | P5 blocker |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Lau Møller Andersen - 2016-11-03 15:51:58 +0100
Newest updated version on github doesn't get the elec and grad structures (from a neuromag306 fif file) From github %% path github version restoredefaultpath addpath /home/lau/matlab/fieldtrip/ ft_defaults hdr = ft_read_header(path); sens = ft_read_sens(path, 'senstype', 'meg'); hdr = struct with fields: label: {315×1 cell} nChans: 315 Fs: 5000 nSamples: 1587000 nSamplesPre: 0 nTrials: 1 orig: [1×1 struct] chantype: {315×1 cell} chanunit: {315×1 cell} Error using ft_read_sens (line 176) neither electrode nor gradiometer information is present %% older version 20161001 restoredefaultpath addpath /home/lau/matlab/fieldtrip-20161001/ ft_defaults hdr = ft_read_header(path); sens = ft_read_sens(path, 'senstype', 'meg'); hdr = struct with fields: label: {315×1 cell} nChans: 315 Fs: 5000 grad: [1×1 struct] elec: [1×1 struct] nSamples: 1587000 nSamplesPre: 0 nTrials: 1 orig: [1×1 struct] chantype: {315×1 cell} chanunit: {315×1 cell} sens = struct with fields: balance: [1×1 struct] chanori: [306×3 double] chanpos: [306×3 double] chantype: {306×1 cell} chanunit: {306×1 cell} coilori: [510×3 double] coilpos: [510×3 double] coordsys: 'neuromag' label: {306×1 cell} tra: [306×510 double] type: 'neuromag306' unit: 'cm' Best Lau
Robert Oostenveld - 2016-11-04 08:53:23 +0100
thanks for spotting this I made a typo with this commit: https://github.com/fieldtrip/fieldtrip/commit/c206109c4d0884c2bbfa3bfbb94ba20a3aaaf24f This fixes it: [master db82c6f] FIX - there was a typo in mne2grad, causing it to error (which was caught) and no grad or elec in ft_read_header. See http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3201 and thanks to Lau! 1 file changed, 1 insertion(+), 1 deletion(-)