Back to the main page.

Bug 3230 - Push buttons in ft_anonimizedata don't work

Status CLOSED FIXED
Reported 2017-01-11 18:58:00 +0100
Modified 2017-03-14 12:48:19 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Arjen Stolk - 2017-01-11 18:58:29 +0100

When pressing any of the four push buttons ('apply','keep all', 'remove all', 'clear all'), the below error appears. It's still possibly to manually check on/off each label in the GUI. >> dat = ft_anonimizedata([], data) Undefined function or variable 'parseKeyboardEvent'. Error in ft_anonimizedata>keyboard_cb (line 285) key = parseKeyboardEvent(eventdata); Error using uiwait (line 81) Error while evaluating UIControl Callback Error using ft_anonimizedata (line 225) aborted by user


Robert Oostenveld - 2017-01-11 22:57:08 +0100

which matlab version? Could you try another one?


Arjen Stolk - 2017-01-11 23:44:32 +0100

(In reply to Robert Oostenveld from comment #1) 2015b, on 64bit MBP OS10.12.2 It's the only version I have. Are you not experiencing it with your matlab version?


Jan-Mathijs Schoffelen - 2017-01-17 16:36:29 +0100

Hi Arjen, This was a relative no-brainer. The subfunction parseKeyboardEvent was missing from the function. I copied over a version from ft_databrowser, and fixed another small matlab-version related thingy. I think it should now work. (as per pull request 300 on github)


Arjen Stolk - 2017-01-17 18:11:09 +0100

Thanks, mate. Weird how that'd happen.