-
Notifications
You must be signed in to change notification settings - Fork 11
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
Discrepencies with imported files compared to Brain vision #5
Comments
Regarding point 4, I have a working version where I import the segment date/time information as a MATLAB datetime object. I'd be happy to file a pull request but I'm not sure whether MATLAB datetime would be the right solution here, as I'm afraid it would be incompatible with older MATLAB versions, Octave, etc. Is there a policy on how EEGLAB should handle date/time information? It would be nice if I could modify my code to a "pullable" solution. |
Datetime is an old function. I think it will be compatible. Make a pull request and I will check. Tx
… On Aug 9, 2021, at 9:46 AM, bknakker ***@***.***> wrote:
Regarding point 4, I have a working version where I import the segment date/time information as a MATLAB datetime object. I'd be happy to file a pull request but I'm not sure whether MATLAB datetime would be the right solution here, as I'm afraid it would be incompatible with older MATLAB versions, Octave, etc. Is there a policy on how EEGLAB should handle date/time information? It would be nice if I could modify my code to a "pullable" solution.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
@bknakker, do you also have by any chance a version where the bvtime field is written during export from eeglab back to bv format? |
|
I’ve noticed some small deviations when I compare the output of pop_writebva with original brainvision data.
There is an additional marker in the beginning: “Mk1=Time 0,,1,0,0,0". This results in a different numbering of markers, and in the writebva output there is one marker more than in the original data
the differentiation between "Stimulus" and "Response" markers is lost in the export, even though this information is preserved in the EEG.event structure. Replacing line 132
EEG.event(index).type = 'Stimulus';
with
EEG.event(index).type = EEG.event(index).code;
seems to fix this.
very very minor:
"\1" is not correctly written into the output file, but an additional \ in line 126 should fix that (\1)
is there any way to preserve the date information stored with the first New Segment marker?
Mk2=New Segment,,1,0,0,0 % output from write_bva
Mk1=New Segment,,1,1,0,20170816200208360070 % line from original vmrk file
I guess this is related to the EEG.bvtime field. But since I get there a negative number, I'm not sure how exactly it works.
Usually I wouldn't care about that, but if you have synchronous video, this is a useful piece of information.
Many thanks and best regards,
Clemens
The text was updated successfully, but these errors were encountered: