Back to the main page.

Bug 2118 - inconsistent number of channels in sensor description after ft_freqanalysis

Status CLOSED INVALID
Reported 2013-04-16 15:08:00 +0200
Modified 2019-08-10 12:02:53 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P3 normal
Assigned to: Diego Lozano Soldevilla
URL:
Tags:
Depends on:
Blocks:
See also:

Diego Lozano Soldevilla - 2013-04-16 15:08:46 +0200

Created attachment 456 toy data During ft_freqanalysis there's a sensor inconsistency between grad and data structs. I got this error: Error using ft_datatype_sens (line 186) inconsistent number of channels in sensor description Error in ft_datatype_raw (line 130) data.grad = ft_datatype_sens(data.grad); Error in ft_checkdata (line 213) data = ft_datatype_raw(data, 'hassampleinfo', hassampleinfo); Error in ft_freqanalysis (line 219) data = ft_checkdata(data, 'datatype', {'raw', 'comp', 'mvar'}, 'feedback', cfg.feedback, 'hassampleinfo', 'yes'); and the grad.chanpos/chanori is wrong K>> TFAgamma.grad ans = balance: [1x1 struct] chanori: [302x3 double] chanpos: [575x3 double] chantype: {302x1 cell} chanunit: {302x1 cell} coilori: [595x3 double] coilpos: [595x3 double] label: {575x1 cell} tra: [575x595 double] type: 'ctf275_planar' unit: 'cm' I suspect there's something wrong with the megplanar/neighbours because before it the chanpos is OK balance: [1x1 struct] chanori: [302x3 double] chanpos: [302x3 double] chantype: {302x1 cell} chanunit: {302x1 cell} coilori: [595x3 double] coilpos: [595x3 double] label: {302x1 cell} tra: [302x595 double] type: 'ctf275' unit: 'cm'


Diego Lozano Soldevilla - 2013-04-18 18:31:47 +0200

The crash was due to the use of a very old version ft_apply_montage from 2011 that was by error in user path.


Robert Oostenveld - 2019-08-10 12:02:53 +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 describing the issue on https://github.com/fieldtrip/fieldtrip/issues.