[FieldTrip] Error -> ft_databrowser
"Jörn M. Horschig"
jm.horschig at donders.ru.nl
Thu Apr 26 10:19:56 CEST 2012
Hi Elena,
most likely your data has trials with overlapping sample points.
Unfortunately, the databrowser does not support this, or to be more
specific ft_fetch_data does not support this. The reason for this is
that a specific segment in time is defined twice in your data, and it is
not clear what segment it is you would like to look at (due to filter
artifacts and other preprocessing steps, the data will most likely have
different values for the same sample points). For non-continuous data
(already preprocessed data), it should be able to implement this
nonetheless, but that's on our todo list. The best way for now is to
call ft_redefinetrial and cut out the overlapping segments.
You could also hack your way around this by removing data.sampleinfo.
FieldTrip will then make up arbitrary, meaningless sample numbers. Keep
in mind that we do not recommend this though. There is no way that the
reconstructed sample numbers can be traced back to your original data!
(well... if your programming skills are reasonable enough, it is
possible, but that requires some further hacking, and a lot of effort).
Best,
Jörn
On 4/26/2012 12:04 AM, Elena Orekhova wrote:
> Hi
> I encounted the same problem with ft_databrowser:
>
> *************
> fetching artifacts... Error using ft_fetch_data (line 57)
> data does not contain a consistent trial definition, fetching data is not
> possible
>
> Error in ft_databrowser>redraw_cb (line 1159)
> art = ft_fetch_data(opt.artdata, 'begsample', begsample, 'endsample',
> endsample);
>
> Error in ft_databrowser (line 535)
> redraw_cb(h);
> ****************
>
> The same data works OK with
> [data] = ft_rejectvisual(cfg, data)
>
> I have:
> MacOS 10.6.8
> MATLAB 7.13.0.564 (R2011b)
>
> Matlab re-installation did not help in my case.
> I would be grateful for any tips.
>
> Elena
> ------------------------------------------------------------------------
> *From:* fieldtrip-bounces at donders.ru.nl
> [fieldtrip-bounces at donders.ru.nl] on behalf of Mehmet-Akif Coskun
> [mcoskun at mail.uh.edu]
> *Sent:* Wednesday, March 07, 2012 6:55 PM
> *To:* Email discussion list for the FieldTrip project
> *Cc:* fieldtrip at donders.ru.nl
> *Subject:* Re: [FieldTrip] Error -> ft_databrowser
>
> Hi Michael,
>
>
> I have posted the question actually but I didn't hear any suggestions
> about it. The same error was posted yesterday by someone else.
>
>
> just to repeat what i have replied in the other post, i tried many
> things to solve it (changed the code, run the databrowser code line by
> line, updated fieldtrip version at etc.), but none of them solved the
> problem. I started getting the error after I tried using parallel
> processing scripts in matlab. But as i said, i have no basis to say
> that this caused the problem. So basically, i do not know any
> scientific solution.
>
>
> But an old school method solved the problem in my case. Simply i
> uninstalled and re-installed matlab. Never got the error again. You
> may want to try this. I have no other solution.
>
>
> Mehmet
>
>
>
>
>
> ----- Original Message -----
> From: "Epstein, Michael" <MEpstein at NKI.RFMH.ORG>
> Date: Wednesday, March 7, 2012 11:29 am
> Subject: Re: [FieldTrip] Error -> ft_databrowser
> To: fieldtrip at donders.ru.nl
>
> > Hi - I am actually encountering the same error with databrowser, and
> was wondering if you ever came up with a solution to this problem - or
> if anyone else has a solution - I didn't find a response on the
> mailing list.
>
> >
>
> > -Michael
>
> >
>
> >
>
> >
>
> ------------------------------------------------------------------------
>
> > Dear Fieldtrippers,
>
> >
>
> >
>
> > I am encountering a strange error while i try to use ft_databrowser.
> The error code is as below. I have never seen this error earlier. I
> used ft_databrowser many times and its only last 2 days that i am
> getting the error. I downloaded a newer version of fieldtrip
> (fieldtrip-20120130) and used the newer version but still the same
> error. Strangely, i dont get this error when i tried with other
> computers (same matlab version (R2010a), same operating system
> (windows 7) on both computers. Has anyone got this error before? what
> may cause this error?
>
> >
>
> >
>
> > fieldtrip version 20120130, matlab version R2010a, operating system
> windows 7.
>
> >
>
> >
>
> > Thanks in advance for any suggestions.
>
> >
>
> >
>
> >
>
> > ??? Error using ==> ft_fetch_data at 57
>
> > data does not contain a consistent trial definition, fetching data is not
>
> > possible
>
> >
>
> >
>
> > Error in ==> ft_databrowser>redraw_cb at 1159
>
> > art = ft_fetch_data(opt.artdata, 'begsample', begsample, 'endsample',
> endsample);
>
> >
>
> >
>
> > Error in ==> ft_databrowser at 535
>
> > redraw_cb(h);
>
> >
>
>
> ------------------------------------------------------------------------
> > Conserve Resources. Print only when necessary.
> >
> > IMPORTANT NOTICE: This e-mail is meant only for the use of the
> intended recipient. It may contain confidential information which is
> legally privilegedor otherwise protected by law. If you received this
> e-mail in error or from someone who is not authorized to send it to
> you, you are strictly prohibited from reviewing, using, disseminating,
> distributing or copying the e-mail. PLEASE NOTIFY US IMMEDIATELY OF
> THE ERROR BY RETURN E-MAIL AND DELETE THIS MESSAGE FROM YOUR SYSTEM.
> Thank you for your cooperation.
>
> > _______________________________________________
> > fieldtrip mailing list
> > fieldtrip at donders.ru.nl
> > http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands
Contact:
E-Mail: jm.horschig at donders.ru.nl
Tel: +31-(0)24-36-68493
Web: http://www.ru.nl/donders
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120426/78d4ec25/attachment-0002.html>
More information about the fieldtrip
mailing list