Back to the main page.
Bug 2248 - error in openmeeg test script due to elecpos
Status | CLOSED FIXED |
Reported | 2013-08-13 01:14:00 +0200 |
Modified | 2014-02-24 10:56:25 +0100 |
Product: | FieldTrip |
Component: | external |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P3 normal |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Ekaterina - 2013-08-13 01:14:20 +0200
In the version fieldtrip-20130812 "testOpenMEEGeeg.m" gives error: ??? Reference to non-existent field 'elecpos'. Error in ==> ft_compute_leadfield at 381 lf = zeros(size(sens.elecpos, 1), 3*Ndipoles); Error in ==> testOpenMEEGeeg>run_bem_computation at 102 lf_sphere = ft_compute_leadfield(pos, sens, vol_sphere); Error in ==> testOpenMEEGeeg at 17 [rdms,mags] = run_bem_computation(r,c,pos); Error in ==> run at 57 evalin('caller', [s ';']); In the version fieldtrip-20130812 "openmeeg_eeg_leadfield_example.m" gives error: ??? Error using ==> set Color value must be a 3 element numeric vector Error in ==> ft_plot_mesh at 288 set(hs, 'MarkerSize', vertexsize, 'MarkerEdgeColor', vertexcolor); Error in ==> openmeeg_eeg_leadfield_example at 74 figure; ft_plot_mesh(bnd, 'vertexcolor', lf_openmeeg(:,1)) Error in ==> run at 57 evalin('caller', [s ';']);
Robert Oostenveld - 2013-11-28 12:43:32 +0100
With the changes that I am about to commit it now works. It only required a small update. However, see also bug #2338. ------------------ current output is below ------------------ reordering the boundaries to: 3 2 1 Read name: tp99df4bd7_d334_4f61_9074_599e1be39354.tri Read name: tpf9ad62ad_77b1_40a9_895f_79bd0ab3e289.tri Read name: tp259613cd_ea00_42c7_bc7c_6470ee3082d7.tri the call to "ft_prepare_headmodel" took 1 seconds and required the additional allocation of an estimated 0 MB using headmodel specified in the configuration using electrodes specified in the configuration determining source compartment (3) projecting electrodes on skin surface combining electrode transfer and system matrix creating dipole grid based on user specified dipole positions using headmodel specified in the configuration using gradiometers specified in the configuration 1 dipoles inside, 0 dipoles outside brain the call to "ft_prepare_sourcemodel" took 0 seconds and required the additional allocation of an estimated 0 MB calculating leadfield for all positions at once, this may take a while... ans = 1 Assembling OpenMEEG DSM matrix Read name: tpeec00810_b554_4686_91e0_5fe23b91d543.tri Read name: tpd6d45cca_bd84_4502_8d35_c069869960c8.tri Read name: tpf9e02cf4_1c52_49e3_93e2_a5546a219fac.tri Elapsed time is 0.018487 seconds. the call to "ft_prepare_leadfield" took 2 seconds and required the additional allocation of an estimated 0 MB RDMs: 0.063979 0.063979 0.13602
Robert Oostenveld - 2013-11-28 12:48:46 +0100
updated the example and test script to use elecpos instead of pnt, made the representation of the boundaries and the conductivity consistent (they were the other way around) mac001> svn commit Sending external/openmeeg/om_write_cond.m Sending external/openmeeg/openmeeg.m Sending external/openmeeg/openmeeg_eeg_leadfield_example.m Sending external/openmeeg/testOpenMEEGeeg.m Transmitting file data .... Committed revision 8878.