-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error : creating a new mff file #21
Comments
Sorry for the late answer. Would you mind to share a data file? |
Closing the bug because no data file |
Hello,
and it worked. |
Wonderful. I will pass the code along to Brainstorm. |
@emmatx I updated Brainstorm to use the new version 3.1 of the library: brainstorm-tools/brainstorm3@caca0c1 Please update Brainstorm and try again. |
Thank you Francois,
I was planning to send you an email next month after I make sure everything is stable. But now is fine as well.
Cheers,
Arno
… On Apr 1, 2020, at 10:10 AM, Francois ***@***.***> wrote:
@emmatx I updated Brainstorm to use the new version 3.1 of the library.
Please update Brainstorm and try again.
When trying to import a new .mff file, it should download the new version of the library automatically.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@ftadel Unrecognized function or variable 'boundaryEvent'. Error in mff_exportepochs (line 60) Error in mff_export (line 62) Error in mff_fileio_write (line 54) Error in ft_write_data (line 433) Error in EEG_reshape_0323 (line 158) In fact, I also modified a line in mff_exportepochs but it was one week ago and I forgot to tell you, I'm sorry : |
@emmatx I guess this has nothing to do with Brainstorm, as we are not calling ft_write_data or mff_fileio_write anywhere in the Brainstorm code. Do you have any issue specifically with Brainstorm? |
Yes, this is a problem with the Fieldrip function - which calls the plugin. Send me the data you are trying to write and the commands you are using to write it and we will see if we can reproduce the problem. |
Here is the link : https://www.dropbox.com/sh/84k63p1dkt7prbb/AAC6736qVU_9u4gqy1Kkariaa?dl=0 |
I have fixed the issue in version 3.2. You will need to replace the folder Fieldtripxxxxx/external/mffmatlabio with a clone of this folder before you can make your script work. |
Thank you ; I updated fieldtrip today, and I tried. I got this error : Unrecognized function or variable 'boundaryEvent'. Error in mff_exportepochs (line 60) Error in mff_export (line 62) Error in mff_fileio_write (line 54) Error in ft_write_data (line 433) Error in sync_3_fitting_and_file (line 174) |
Yes, you have to replace the external/mffmatlabio folder with a copy of the current code on Github.
Cheers,
Arno
… On Apr 9, 2020, at 6:56 PM, emmatx ***@***.***> wrote:
Thank you ; I updated fieldtrip today, and I tried. I got this error :
Unrecognized function or variable 'boundaryEvent'.
Error in mff_exportepochs (line 60)
if isfield(EEG.event, 'duration') && ~isempty(boundaryEvent)
Error in mff_export (line 62)
mff_exportepochs(EEG, outputFile);
Error in mff_fileio_write (line 54)
mff_export(EEG, filename);
Error in ft_write_data (line 433)
mff_fileio_write(filename, hdr, dat, evt);
Error in sync_3_fitting_and_file (line 174)
ft_write_data(fullfile(pwd, output_file), EEG_data.trial{1}, 'header', EEG_data.hdr, 'event', new_events, 'dataformat', 'mff');
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi Arnaud,
I followed your recent tutorial : https://github.com/arnodelorme/mffmatlabio/wiki/5.-Use-with-Fieldtrip ; it works perfectly when I use your data, but when I try with mine (from HD EEG, continuous file) , I get 2 types of errors :
1- When I just read my data, no processing at all, and re-define a file
.....
Epochs.xml file created successfully
Array indices must be positive integers or logical values.
Error in mff_exportepochs (line 63)
durations = [0 durations durations(end) ];
.....
2 - When I define one trial with the onset trigger line, and apply the ft_preprocessing function, I get
.....
Info.xml file created successfully
info1.xml file created successfully
Signal binary file created successfully
Index in position 1 exceeds array bounds (must not exceed 1).
Error in mff_exportsignal (line 118)
data = single(EEG.data(chanRange{iFile},
samples(iSample-1)+1:samples(iSample)))';
Do you have an idea where it comes from or if it is a bug ?
Thanks for your help !
The text was updated successfully, but these errors were encountered: