Back to the main page.
Bug 27 - ensure consistent time axes in ft_resampledata (without rounding errors)
Status | CLOSED FIXED |
Reported | 2010-01-26 18:48:00 +0100 |
Modified | 2019-08-10 12:43:51 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | Macintosh |
Operating System: | Mac OS |
Importance: | P5 normal |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Jan-Mathijs Schoffelen - 2010-01-26 18:48:20 +0100
Jan-Mathijs Schoffelen - 2010-07-06 15:59:38 +0200
made adjustment to ft_resampledata to achieve this + testing script: test_bug27.m
Robert Oostenveld - 2019-04-16 12:19:09 +0200
Mats
Robert Oostenveld - 2019-04-16 12:20:50 +0200
(In reply to Robert Oostenveld from comment #2) sorry for the incomplete message. Mats and I encountered a problem with ft_resampledata and time axes shifting. The input is 1200 Hz, variable length axes. The resampling is to 600Hz. Some original trials have an even number of samples, some have an odd number of samples. I will add the problematic case to the test script and make it more strict.
Robert Oostenveld - 2019-04-16 14:41:46 +0200
mac011> git commit -a [bug27 4a0663c7c] FIX - improved handling of skewed time axes after resampling, see also http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=27 2 files changed, 193 insertions(+), 118 deletions(-)
Robert Oostenveld - 2019-04-16 14:43:42 +0200
closed with https://github.com/fieldtrip/fieldtrip/pull/1084
Robert Oostenveld - 2019-08-09 12:35:45 +0200
See also https://github.com/fieldtrip/fieldtrip/issues/1184