<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Dear Jan, <div><br></div><div>I have tried increasing the java heap memory but the processing still takes ~1 min per individual trial. </div><div><br></div><div>Regarding the code, I have tried to break down the different steps, and my impression was that the preproc function was slowing down the whole process, but this is only the case in the fieldtrip version with mff v3. I can try to go over the code again but the deeper I go into the FT functions, the more confusing it gets!</div><div><br></div><div>Thanks for the help, </div><div>Best</div><div>Raphaël</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 13 juin 2019 à 18:27, Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl">jan.schoffelen@donders.ru.nl</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="overflow-wrap: break-word;">
<div style="overflow-wrap: break-word;">
Dear Raphael,
<div><br>
</div>
<div>I happened to bump into Trey Avery, from Philips/egi the other day, and he mentioned that you might want to consider to increase the java heap memory to a larger value. How this can be done is shown here: <a href="https://www.mathworks.com/help/matlab/matlab_external/java-heap-memory-preferences.html" target="_blank">https://www.mathworks.com/help/matlab/matlab_external/java-heap-memory-preferences.html</a></div>
<div><br>
</div>
<div>That is, in your message you are a bit ambiguous as to where exactly in the code the slowdown takes place. If it is indeed preproc, as you mention, then it’s probably not an input/output problem.</div>
<div><br>
</div>
<div>Anyway, it wouldn’t hurt to try I think. Could you let us know whether this works for you? In that case we can add this to our documentation section of ‘getting started with egi data’ on our
<a href="http://fieldtriptoolbox.org/" target="_blank">fieldtriptoolbox.org</a> website. Also, the current version of that part of the documentation could be improved a bit I think to reflect better the recent improvements to the code (i.e. the use of the v3 reader…).
 Feel free to suggest changes yourself.</div>
<div><br>
</div>
<div>Best wishes,</div>
<div><br>
</div>
<div>Jan-Mathijs<br>
<div><br>
<blockquote type="cite">
<div>On 24 May 2019, at 15:58, Raphaël Thézé <<a href="mailto:raphael.theze@gmail.com" target="_blank">raphael.theze@gmail.com</a>> wrote:</div>
<br class="gmail-m_8248051312531491855Apple-interchange-newline">
<div>
<div dir="ltr">Dear all, 
<div><br>
</div>
<div>I have a question regarding the import of mff file format.</div>
<div><br>
</div>
<div>I used to import my EGI data with fieldtrip version 20180201 which worked fine (with egi_mff_v1) but when I switched to fieldtrip version 20190325, it uses egi_mff_v3 as default. The latter also works well except that when it used to take 1 sec
 per trial to be imported with V1, now it takes about 1 minute per trial with V3. The amount of time needed to import one subject in my case would be theoretically 3 hours, which is ridiculously long. I understand that the switch of version takes place in ft_read_data,
 which is called by ft_preprocessing, but apparently it is preproc, also called by ft_preprocessing, that takes forever to compute, but I can't explain why. I tried to manually request to use the version egi_mff_V1 but then there is an error regarding xml file,
 that I have not tried to explore so far. </div>
<div><br>
</div>
<div>For now I will just go back to the 20180201 version of fieldtrip so I can quickly import data into matlab, but I would like to understand what is going wrong here, or if it is to be expected. </div>
<div><br>
</div>
<div>In advance, thank you all. </div>
<div>Best, <br>
Raphaël</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>

_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>