Back to the main page.
Bug 2857 - ft_artifact_zvalue interactive GUI fails in 2014b and keyboard buttons don't work
Status | CLOSED FIXED |
Reported | 2015-02-24 16:11:00 +0100 |
Modified | 2019-08-10 12:32:29 +0200 |
Product: | FieldTrip |
Component: | plotting |
Version: | unspecified |
Hardware: | Macintosh |
Operating System: | Mac OS |
Importance: | P5 minor |
Assigned to: | |
URL: | |
Tags: | |
Depends on: | |
Blocks: | 3118 |
See also: |
- 2015-02-24 16:11:07 +0100
It seems that you recently start using Matlab R2014b and ask for possible remaining bugs due to the new graphics. I just noticed one using the ft_artifact_zvalue when the cfg.artfctdef.zvalue.interactive is turn on ('yes'). Indeed, when I want to use the command buttons (such as go through the next trial or the next artifact) inside the GUI, I have the following error: No appropriate method, property, or field Key for class matlab.ui.eventdata.ActionData. Error in ft_artifact_zvalue>parseKeyboardEvent (line 1074) key = eventdata.Key; Error in ft_artifact_zvalue>keyboard_cb (line 675) key = parseKeyboardEvent(eventdata); Error using waitfor Error while evaluating UIControl Callback I don't have any other problems with the other GUIs. I hope it will help you to find the source of the bug.
Robert Oostenveld - 2015-02-24 16:41:32 +0100
thanks for reporting this. I can reproduce the problem in 2014b with cfg = []; cfg.dataset = 'Subject01.ds' cfg.trialdef.eventtype = 'trial' cfg = ft_definetrial(cfg); ft_artifact_zvalue(cfg) cfg.artfctdef.zvalue.channel = 'MEG' cfg.artfctdef.zvalue.cutoff = 3 cfg.artfctdef.zvalue.interactive = 'yes' cfg = ft_artifact_zvalue(cfg) and then click on the "next artefact" button. We will look into this.
Robert Oostenveld - 2015-02-24 16:44:07 +0100
(In reply to Robert Oostenveld from comment #1) there was a stray line in the code, this is what reproduces it: cfg = []; cfg.dataset = 'Subject01.ds' cfg.trialdef.eventtype = 'trial' cfg = ft_definetrial(cfg); cfg.artfctdef.zvalue.channel = 'MEG' cfg.artfctdef.zvalue.cutoff = 3 cfg.artfctdef.zvalue.interactive = 'yes' cfg = ft_artifact_zvalue(cfg)
Robert Oostenveld - 2015-02-24 17:05:45 +0100
This solves it for interactions with the mouse in the figure. mac011> svn commit Sending ft_artifact_zvalue.m Sending ft_sourceanalysis.m Transmitting file data .. Committed revision 10259. For now the reported issue has been resolved. But I could not figure out how the keyboard would have to be used, neither in 2012b nor in 2014b. Hence I will leave this bug open so that this can be addressed at a later point in time.
- 2015-02-24 17:15:23 +0100
Indeed, it works now. Thanks for solving the problem so quickly. (In reply to Robert Oostenveld from comment #3)
Jan-Mathijs Schoffelen - 2016-05-11 16:42:58 +0200
I think that this is not an issue anymore (cf. bug 3118 and the comments in this (2857) bug)