The purpose of this page is just to serve as todo or scratch pad for the development project and to list and share some ideas.

After making changes to the code and/or documentation, this page should remain on the website as a reminder of what was done and how it was done. However, there is no guarantee that this page is updated in the end to reflect the final state of the project

So chances are that this page is considerably outdated and irrelevant. The notes here might not reflect the current state of the code, and you should not use this as serious documentation.

Consistent flank detection for triggers

The read_event used to have multiple re-implementations of flank detection for trigger channels, i.e. for multiple file formats (4d, bdf, fif, ctf, neuralynx). This has recently (2008/04/29) been changed by introducing a read_trigger helper function, which is used for neuromag, bti and ctf.

It is not yet used for biosemi, and it also has not yet replaced the read_ctf_trigger function. This should still be done.

Issues to be solved in the flank detection

  • multiple trigger channels (OK)
  • downgoing flank also interesting (OK)
  • triggers sitting on top of each other (OK)
  • should be combined with read_data instead of using file format specific reading functions (OK)
  • bitmasking of single channel for multiple meanings (bdf-status, ctf151-back/front)
  • slow rise of flank, i.e. value should be detected a few samples later
  • consistent naming of triggers, but also backward compatibility