Error during .set import

Hi everyone, I have a problem that I don't know where it comes from. I'm importing EEGLAB epoched dataset. My epoch length is -500 1996 ms. I use to import data by script, and it usually works. Although, I noticed that for some subjects the length of the epochs was wrong, in fact it was -2448 48 ms. Not for every subject, but just for some of them. I them imported those subjects manually, and everything worked perfectly. Do you have any suggestion of where I could take a look to find a possible error, because it is a very strange error? If you need I could write here my code, but it is very simple
Thanks
Gian Marco

Hi Gian Marco,

Could you share a small example dataset with which you're having this problem?
(interactive import OK, but timing issue when importing using the process "Import recordings > Import MEG/EEG: Existing epochs")
Upload it somewhere and post the download link here.

Thanks
Francois

https://mega.nz/#F!EooXCQYY!dD5W5nwu5_6kHTT_pevT5w

I uploaded one file where I find the import error and the script that I use.
Let me know if you have problem in downloading the files
thanks

This file has no problem, but if you want to import data that is already epoched, you should use process_import_data_epoch, not process_import_data_event.
Go back to generating the script from the pipeline editor to fix all the other problems (eg. times should be in seconds and not milliseconds). Check the box "All file" to make your import script more portable.