<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Elena,<br>
<br>
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.<br>
<br>
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). <br>
<br>
Best,<br>
Jörn<br>
<br>
On 4/26/2012 12:04 AM, Elena Orekhova wrote:
<blockquote
cite="mid:32CC77C0C8A7AD4B9410934642608E1F25391DE8@exchccr1.neuro.gu.se"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style id="owaParaStyle" type="text/css"></style>
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">Hi<br>
I encounted the same problem with ft_databrowser:<br>
<br>
*************<br>
fetching artifacts... Error using ft_fetch_data (line 57)<br>
data does not contain a consistent trial definition, fetching
data is not<br>
possible<br>
<br>
Error in ft_databrowser>redraw_cb (line 1159)<br>
art = ft_fetch_data(opt.artdata, 'begsample', begsample,
'endsample',<br>
endsample);<br>
<br>
Error in ft_databrowser (line 535)<br>
redraw_cb(h);<br>
****************<br>
<br>
The same data works OK with <br>
[data] = ft_rejectvisual(cfg, data)<br>
<br>
I have:<br>
MacOS 10.6.8 <br>
MATLAB 7.13.0.564 (R2011b)<br>
<br>
Matlab re-installation did not help in my case.<br>
I would be grateful for any tips.<br>
<br>
Elena<br>
<div style="font-family: Times New Roman; color: #000000;
font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF960314"><font
color="#000000" face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip-bounces@donders.ru.nl">fieldtrip-bounces@donders.ru.nl</a>
[<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip-bounces@donders.ru.nl">fieldtrip-bounces@donders.ru.nl</a>] on behalf of Mehmet-Akif
Coskun [<a class="moz-txt-link-abbreviated" href="mailto:mcoskun@mail.uh.edu">mcoskun@mail.uh.edu</a>]<br>
<b>Sent:</b> Wednesday, March 07, 2012 6:55 PM<br>
<b>To:</b> Email discussion list for the FieldTrip project<br>
<b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<b>Subject:</b> Re: [FieldTrip] Error -> ft_databrowser<br>
</font><br>
</div>
<div>Hi Michael,<br>
<br>
<br>
I have posted the question actually but I didn't hear any
suggestions about it. The same error was posted yesterday by
someone else. <br>
<br>
<br>
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.<br>
<br>
<br>
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.<br>
<br>
<br>
Mehmet<br>
<br>
<br>
<br>
<br>
<br>
----- Original Message -----<br>
From: "Epstein, Michael" <a class="moz-txt-link-rfc2396E" href="mailto:MEpstein@NKI.RFMH.ORG"><MEpstein@NKI.RFMH.ORG></a><br>
Date: Wednesday, March 7, 2012 11:29 am<br>
Subject: Re: [FieldTrip] Error -> ft_databrowser<br>
To: <a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<br>
<span>
<p>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New"}
span.EmailStyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
span.HTMLPreformattedChar
{font-family:"Courier New"}
@page Section1
{margin:1.0in 1.0in 1.0in 1.0in}
-->
BODY {direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;}P {margin-top:0;margin-bottom:0;}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}</style>
<table>
<tbody>
<tr>
<td lang="EN-US">
<div class="Section1">
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>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.</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>-Michael</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<div class="MsoNormal"
style="text-align:center; background:white"
align="center">
<span style="font-size:10.0pt;
font-family:"Courier New";
color:black">
<hr align="center" size="2" width="100%">
</span></div>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>Dear Fieldtrippers,</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>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?</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>fieldtrip version 20120130, matlab
version R2010a, operating system windows
7.</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>Thanks in advance for any
suggestions.</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>??? Error using ==>
ft_fetch_data at 57</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>data does not contain a consistent
trial definition, fetching data is not</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>possible</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>Error in ==>
ft_databrowser>redraw_cb at 1159</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>art = ft_fetch_data(opt.artdata,
'begsample', begsample, 'endsample',
endsample);</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>Error in ==> ft_databrowser at
535</span></p>
<p class="MsoNormal" style="background:white"><span
style="font-size:10.0pt;
font-family:"Courier New";
color:black"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>redraw_cb(h);</span></p>
<p class="MsoNormal"><font
style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font> </p>
</div>
<br>
<hr>
<font style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>Conserve Resources. Print only when
necessary.<br>
<font style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font><br>
<font style="font-style:normal;
font-weight:normal;
background-color:rgb(245,248,240);
font-size:14px">>
</font>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.
</td>
</tr>
</tbody>
</table>
</p>
</span>> _______________________________________________<br>
> fieldtrip mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
> <a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
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: <a class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel: +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
</body>
</html>