<div dir="ltr"><div class="gmail_default" style="color:#333399">Hello Grusha, one thing to try is to NOT append the event lists until after you've merged the datasets successfully, which should not be tough.</div><div class="gmail_default" style="color:#333399">I would also not fully depend on urevent, but consider having your own structure in matlab which contains all your necessary event information.</div><div class="gmail_default" style="color:#333399">And yes, urevents is probably not being used later in your analysis pipeline. </div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">Also, check the way that you are adding in events is kosher, as it might be causing this issue. See the addnewevents function which seems to work great, if you haven't had a chance to.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">If you think this is a bug, and can replicate it easily, please submit it to the eeglab bugzilla.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 8, 2017 at 10:19 AM, Grusha Prasad <span dir="ltr"><<a href="mailto:grusha.prasad@gmail.com" target="_blank">grusha.prasad@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi!<div><br></div><div>I've been trying to merge two datasets using pop_mergeset() after appending eventlists on both the sets and I get this error at line 275: Reference to non-existent filed 'urevent'. I read through the thread "Merging two datasets with unequal number of events" and from what I gathered, it seemed like the issue had to do with eventlist somehow changing the 'urevent' structure. While there are fewer events in my event structure when compared to my urevent structure (because while binning it, I am ignoring my 'distractor' trigger), this doesn't seem to be the problem - because the problem persists even when I try merging sets before I bin them (so 'urevent' has the same number of events as the 'event' structure). </div><div><br></div><div>Though the 'urevent' isn't missing, I tired the proposed solution in the thread and ran</div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>EEG = <span style="color:rgb(0,0,0);white-space:pre-wrap">eeg_checkset(EEG, 'makeur')</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div></blockquote><font color="#000000"><span style="white-space:pre-wrap">This did not work either. So I went in to the script for pop_mergeset() and commented out lines 254 to 294 (the part which seems to be trying to concatenate the urevents). This seems to do the trick. The files merge and the event structure has the right number of events. However, as expected, the new EEG structure has the urevents only from the first set. From the little I understand though, it seems to me like this wouldn't be a problem because all further steps (Artifact detection and computing averaged ERPs) seem to use just the event structure. Is this true? Or will there be any problems with doing this that I am missing? </span></font></div><div><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div><div><font color="#000000"><span style="white-space:pre-wrap">Thank you!</span></font></div><span class="HOEnZb"><font color="#888888"><div><font color="#000000"><span style="white-space:pre-wrap">Grusha.</span></font></div><div><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div><div><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div></font></span></div>
<br>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>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.<wbr>edu</a><br></blockquote></div><br></div>