Back to the main page.
Bug 3338 - ft_redefinetrial returns incorrectly nan-padded data
Status | NEW |
Reported | 2017-08-25 11:08:00 +0200 |
Modified | 2017-08-25 11:09:09 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P5 normal |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Robert Oostenveld - 2017-08-25 11:08:48 +0200
when using it with cfg.trl, and specifying a range that is not inside the data (as specified in data.sampleinfo), ft_refefinetrial returns nans. If the first trial in the data starts at sample 1, and if you specify a negative sample in trl, ft_redefinetrial returns a segment that is padded with nans at the end, rather than the beginning. Furthermore, it would be nice if ft_redefinetrial would give a warning about the nans, now it happens silently