Back to the main page.

Bug 3007 - provenance handling breaks output of ft_detect_movement

Status CLOSED FIXED
Reported 2015-11-17 11:18:00 +0100
Modified 2016-06-14 16:14:53 +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 - 2015-11-17 11:18:20 +0100

On 16 Nov 2015, at 21:12, Tobias Staudigl wrote: I saw you recently made some changes to ft_detect_movement. When I now use it now, the output 'movement' is overwritten by a structure 'movement' that contains only the structure 'cfg'. I also get this warning: Warning: Struct field assignment overwrites a value with class "double". I guess this is due to line 204 in ft_detect_movement: ft_postamble history movement Can you change that, can I change it myself, or should I rather file a bugzilla? thanks & best, Tobias I use this code: cfg = []; cfg.method = 'velocity2D'; cfg.velocity2D.kernel = [1 1 0 -1 -1].*(eye_movs.fsample/6); cfg.trials = n; cfg.velocity2D.mindur = 14; cfg.velocity2D.velthres = 10; [~, movement]=ft_detect_movement(cfg,eye_movs);


Robert Oostenveld - 2015-11-17 11:19:10 +0100

I received some test data and copied it to /home/common/matlab/fieldtrip/data/test/bug3007


Robert Oostenveld - 2015-11-17 13:32:30 +0100

I fixed it. mac011> svn commit utilities/private/ ft_detect_movement.m Sending ft_detect_movement.m Sending utilities/private/ft_preamble_init.m Sending utilities/private/ft_preamble_trackconfig.m Transmitting file data ... Committed revision 10896. mac011> svn add test/test_bug3007.m A test/test_bug3007.m mac011> svn commit test/test_bug3007.m Adding test/test_bug3007.m Transmitting file data . Committed revision 10897.


Robert Oostenveld - 2016-06-14 16:14:53 +0200

Hereby I am closing multiple bugs that have been resolved for some time now. If you don't agree to the resolution, please reopen.