Skip to content

CNT files with event_type == 3 #3882

Closed
Closed

Description

@jona-sassenhagen

A friend has a recent CNT file that fails to be read in. The reader assumes event_type to be either 1 or 2, but here it is 3.

Minimally, I think we'd just have to go from
elif event_type == 2:
to
elif event_type > 1:

I can make a PR later.

@jaeilepp

Activity

  1. modified the milestone: on Jan 6, 2017
  2. jaeilepp commented on Jan 9, 2017

    @jaeilepp
    Contributor

    The best documentation I've been able to find says that it should be either 1 or 2.

    typedef struct {
       char Teeg;                   /* Either 1 or 2                           */
       long Size;                   /* Total length of all the events          */
       long Offset;                 /* Hopefully always 0                      */
    } TEEG;
    

    Not sure what 3 means...
    Also, it seems that there are a lot of cnt files that don't really conform to these definitions, so the reader maybe needs a revision anyway, but it's hard to find good docs on this.

  3. wmvanvliet commented on Jan 17, 2017

    @wmvanvliet
    Contributor

    we can take the code from eeglab as a reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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