<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Rakesh,<div><br></div><div>yes, we planned to support event type in string format only, to make it simpler and more robust.</div><div>However, this created problems with ERPLAB so we removed the feature in EEGLAB 12.</div><div><br></div><div>So the answer is </div><div><br></div><div>1) you could handle both possibilities</div><div><br></div><div>2) you could have some code convert all the event to be string such as </div><div><br></div><div>EEGTMP = EEG;</div><div>EEGTMP.event(1).type = num2str(EEG.event(1).type);</div><div>EEGTMP = eeg_checkset(EEGTMP, 'eventconsistency');</div><div><br></div><div>Best,</div><div><br></div><div>Arno<br><div><br><div><div>On 31 Mar 2013, at 08:24, Rakesh Sengupta wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Dear Arno, </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am Rakesh Sengupta from Center for Neural and Cognitive Sciences, University of Hyderabad, India.</div>


<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Recently we developed a toolkit for prepossessing EEG data in collaboration with Dr. Metthew Belmonte, basically aligning it to the behavioral data generated from the experiment ( Events and their latency values). </div>


<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">In that toolkit, we used a EEGLAB functions, pop_loadset.m to load EEG .set file and pop_saveset.m to save updated EEG .set file. Recently we encountered some error in executing the code. So we reviewed the EEGLAB functions in question, and found that there is some difference in eeg_checkset.m (which is required by pop_loadset.m function). The detatils are given below</div>


<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">EEGLAB version: 11.04_03b :- </div><div style="font-family:arial,sans-serif;font-size:13px">             </div>


<div style="font-family:arial,sans-serif;font-size:13px">                      Always Converts the event types to string.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">


EEGLAB version: 11.04_04b :- </div><div style="font-family:arial,sans-serif;font-size:13px"> </div><div style="font-family:arial,sans-serif;font-size:13px">                     Converts all event types to string if the event type are heterogeneously integer or string but not if that are homogeneously integer. </div>


<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">So, our question is, should we assume that the event types will always be strings or integers or should we need to handle both possibilities?.</div>


<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Many Thanks, </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">


Regards,</div><div style="font-family:arial,sans-serif;font-size:13px">Rakesh</div></div>
</blockquote></div><br></div></div></body></html>