Back to the main page.
Bug 1070 - Reshape problem in ft_freqanalysis (line 587)
Status | CLOSED FIXED |
Reported | 2011-10-24 12:52:00 +0200 |
Modified | 2012-02-01 14:08:54 +0100 |
Product: | FieldTrip |
Component: | specest |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P1 normal |
Assigned to: | Roemer van der Meij |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
- 2011-10-24 12:52:36 +0200
Using mtmconvol, keeping tapers and trials, FieldTrip jams at line 587 of ft_freqanalysis in a reshape operation (error: the number of elements must not change).
Jan-Mathijs Schoffelen - 2011-10-24 13:12:07 +0200
Hi Freek, could you specify a bit more the background, or even upload a small dataset that allows us to reproduce the problem? I was thinking of a 3 trial dataset and the cfg-structure you used for calling ft_freqanalysis. This should be the minimum required stuff. For now, I did not see any changes in the recent past that directly affected line 587 so at the moment it is hard to figure out what's going on. BW, JM
- 2011-10-24 13:51:06 +0200
(In reply to comment #1) > Hi Freek, could you specify a bit more the background, or even upload a small > dataset that allows us to reproduce the problem? I was thinking of a 3 trial > dataset and the cfg-structure you used for calling ft_freqanalysis. This should > be the minimum required stuff. > For now, I did not see any changes in the recent past that directly affected > line 587 so at the moment it is hard to figure out what's going on. > > BW, JM Hi JM, Somehow uploading a datafile gives an error on this page. Nevertheless I managed to get some grip on the problem: I am using planar gradient data. I give ft_frequanalysis a cfg containing a selection of the channels I am interested in. When I give a selection using a vector with channel-numbers I get the error. When I use a vector of channel-strings, it works. Importantly, while I give 40 strings, output of freqanalysis is 38 planar channels (it thus was not able to do freqanalysis on one pair of planar gradients). The fact that 1 pair of planar-gradient-channels does not come through is, as I assume, the reason of the error. The bug is thus when using channel-numbers to specify planar-gradient channels. Hope this helps you further. I can go further by using channel-labels rather than numbers. Thanks! Freek
Roemer van der Meij - 2012-02-01 13:35:09 +0100
Hi Freek, Could you try uploading a small dataset again that replicates the error?