Back to the main page.

Bug 1972 - ft_scalpcurrentdensity should fail when input is MEG data

Status CLOSED INVALID
Reported 2013-02-06 13:31:00 +0100
Modified 2013-04-23 12:06:30 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Lilla Magyari - 2013-02-06 13:31:36 +0100

Also edit the test script, test_ft_scalpcurrentdensity, by only testing EEG data. The function containing all the test data (something like refdatasets), also outputs a field containing MEG/EEG/etc, which should be used to select appropriate input.


Robert Oostenveld - 2013-02-06 16:55:25 +0100

I was not able to locate test_ft_scalpcurrentdensity on my computer, in svn or on google. Also in the test directory I could not find any reference to a test script which calls ft_scalpcurrentdensity. If anyone has such a test script, please svn add!


Robert Oostenveld - 2013-02-06 16:57:39 +0100

If I test it, then I get this: >> load avgFIC >> cfg = []; >> ft_scalpcurrentdensity(cfg, avgFIC) the input is timelock data with 149 channels and 900 timebins Error using ft_checkdata (line 423) This function should not be given MEG data with a 'grad' field Error in ft_scalpcurrentdensity (line 112) data = ft_checkdata(data, 'datatype', 'raw', 'feedback', 'yes', 'ismeg', 'no'); which is precisely what I would want. So there is actually nothing wrong if you ask me.


Robert Oostenveld - 2013-02-06 16:58:35 +0100

Was it Jim who brought this up?


Robert Oostenveld - 2013-04-23 12:05:54 +0200

closed various bugs


Robert Oostenveld - 2013-04-23 12:06:30 +0200

closed various bugs