Back to the main page.
Bug 1160 - the selfun does not get executed properly in ft_databrowser
Status | CLOSED FIXED |
Reported | 2011-11-16 17:11:00 +0100 |
Modified | 2011-11-23 11:48:10 +0100 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P3 normal |
Assigned to: | Eelke Spaak |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Eelke Spaak - 2011-11-16 17:11:41 +0100
...given data that should be treated continuously, yet does not start at time point 0. Not sure whether this also happens for other inputs; diagnosis is needed.
Eelke Spaak - 2011-11-16 18:02:13 +0100
It turns out that selecting data segments (either for marking or for passing to the selfun) did not work in general when the data set only has one trial. I tracked this to a non-zero offset being added to the trlvis only when there was a single trial, and making the offset vector start at zero when there was more than one trial. I changed this to always add the newly-initialised offset vector. (Code changed around lines 637-649.) Sending ft_databrowser.m Transmitting file data . Committed revision 4755.