<div dir="ltr">Dear Kim,<div><br></div><div>Thank you for your suggestion. If you wish, would you please share your finding in EEGLAB Bugzilla as enhancement? </div><div><br></div><div><a href="https://sccn.ucsd.edu/bugzilla/enter_bug.cgi">https://sccn.ucsd.edu/bugzilla/enter_bug.cgi</a><br></div><div><br></div><div>By the way I've encountered a similar situation. I learned that one cannot make a single epoch with EEGLAB. Unfortunately I forgot how I work around the issue (probably I repeated the epoch twice so that it is recognized as a one-time repeated two epochs?)</div><div><br></div><div>Makoto</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 4:46 PM, Whitehead, Kimberley <span dir="ltr"><<a href="mailto:k.whitehead@ucl.ac.uk" target="_blank">k.whitehead@ucl.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hello<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I wonder if anybody could please offer some advice on altering the eeg_checkset code so that it doesn’t automatically treat files with one epoch as continuous. I think the issue is here:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">In eeg_checkset line 182:<u></u><u></u></p>
<p class="MsoNormal">case 'epochconsist', % test epoch consistency<u></u><u></u></p>
<p class="MsoNormal">                % ----------------------<u></u><u></u></p>
<p class="MsoNormal">                res = 'no';<u></u><u></u></p>
<p class="MsoNormal">                datasettype = unique_bc( [ EEG.trials ] );<u></u><u></u></p>
<p class="MsoNormal">                if datasettype(1) == 1 & length(datasettype) == 1, return; %<u></u><u></u></p>
<p class="MsoNormal">continuous data<u></u><u></u></p>
<p class="MsoNormal">                elseif datasettype(1) == 1,                        return; %<u></u><u></u></p>
<p class="MsoNormal">continuous and epoch data<u></u><u></u></p>
<p class="MsoNormal">                end;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The code says that if there is only 1 epoch, the file is continuous. This means<u></u><u></u></p>
<p class="MsoNormal">that if I try to include this file in a study in which most files have several<u></u><u></u></p>
<p class="MsoNormal">epochs, it says there is no epoch consistency and there is an error when I try<u></u><u></u></p>
<p class="MsoNormal">to do FFT analysis. However, the nature of my analysis means there are many<u></u><u></u></p>
<p class="MsoNormal">files with only 1 epoch. (My epochs are spontaneous transients in EEG which<u></u><u></u></p>
<p class="MsoNormal">I've zeropadded to make the same duration/same number of data points. I've<u></u><u></u></p>
<p class="MsoNormal">split them up by topography so it's common that in 1 file there may be just one<u></u><u></u></p>
<p class="MsoNormal">with, for example, a right occipital topography.)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks, Kim<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div>