[FieldTrip] problem exiting ft_databrowser

Marieke van Vugt m.k.van.vugt at rug.nl
Mon Oct 10 06:22:03 CEST 2011


Hi Ingrid,
I figured out the problem: I did not realize the ft_databrowser was a function, and hence I just called ft_databrowser(cfg,data) without output argument. Using instead cfg=ft_databrowser(cfg,data) made both the "q" key work and gave cfg and artfctdef field. Problem solved!
Thank you!
(as you can tell, I just started using fieldtrip...)
Warm regards,
Marieke

On Oct 9, 2011, at 11:08 , Ingrid Nieuwenhuis wrote:

> Hi Marieke,
> 
> The "q" key not working is a known bug. When the mouse has been used, for some reason the "q" does not work anymore. However, this is not the cause of the artifacts not being saved. Both pressing the "q" and closing the window manually has the exact same effect as programmed in the code. The artifacts should be present as an artifact structure  (2 columns for each artifact, 1st column beginsample, 2nd endsample), which should be added to the output cfg.artfctdef.<artifact name f.i. visual>.artifact. Is this not the case for you?
> 
> Hope this helps,
> Ingrid
> 
> On 10/9/2011 12:53 PM, Marieke van Vugt wrote:
>> 
>> Hi,
>> I am very happy with the ft_databrowser, and looking at artifacts works fine. I can also use the keys to switch between artifact types, move between trials etc. However, when I press "q" to exit, nothing happens. If I then close the window manually, no artifacts are added to my data or cfg structures (even though when I select them, it says: "there is no overlap with the active artifact (visual), mark this as a new artifact").
>> What should I do? Is there a way to exit and still save the marked artifacts? I am using fieldtrip on MacOSX, matlab 2011a).
>> Thanks so much!
>> Marieke
>> ----------------------------------------------------------------------------
>> Marieke van Vugt, PhD
>> Assistant Professor, Cognitive Modeling Group
>> Bernoulliborg, room 326
>> Nijenborgh 9
>> 9747 AG Groningen
>> The Netherlands
>> phone: +31-6-51954984 (cell)
>>               +31-50-363-9487 (office)
>> http://www.ai.rug.nl/~mkvanvugt
>> m.k.van.vugt at rug.nl
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> fieldtrip mailing list
>> fieldtrip at donders.ru.nl
>> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> 
> -- 
> Ingrid Nieuwenhuis PhD
> Postdoctoral Fellow
> Sleep and Neuroimaging Laboratory
> Department of Psychology
> University of California, Berkeley
> California 94720-1650
> Tolman Hall, room 5305
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

----------------------------------------------------------------------------
Marieke van Vugt, PhD
Assistant Professor, Cognitive Modeling Group
Bernoulliborg, room 326
Nijenborgh 9
9747 AG Groningen
The Netherlands
phone: +31-6-51954984 (cell)
              +31-50-363-9487 (office)
http://www.ai.rug.nl/~mkvanvugt
m.k.van.vugt at rug.nl











-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20111010/1358a6d3/attachment-0002.html>


More information about the fieldtrip mailing list