Skip to content

Discrepencies with imported files compared to Brain vision #5

@arnodelorme

Description

@arnodelorme

I’ve noticed some small deviations when I compare the output of pop_writebva with original brainvision data.

  1. 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

  2. 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.

  3. very very minor:
    "\1" is not correctly written into the output file, but an additional \ in line 126 should fix that (\1)

  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions