XDF.jl

Load XDF files in Julia
Author cbrnr
Popularity
10 Stars
Updated Last
6 Months Ago
Started In
August 2020

License

XDF.jl

XDF.jl is an importer for XDF files written in Julia. This package exposes the read_xdf function, which handles everything needed to load the contents of XDF files (including synchronization of different streams).

Installation

Use the package manager to add XDF.jl by typing ] add XDF in the Julia REPL.

Example

Assuming that the file minimal.xdf is in the current working directory, loading it is as simple as:

using XDF

streams = read_xdf("minimal.xdf")

Current status

This package is currently in an early stage, so here's an overview of what doesn't work (yet):

  • Dejittering of streams with regular sampling rates is not available yet
  • Loading only specific streams does not work yet

If you have a feature request or found a bug, please open a new issue and let me know. I'd be especially interested in making the code more efficient, because this is basically my first Julia project. Currently, the function is passing through the file twice: the first pass reads everything except sample chunks, whereas the second pass reads samples into preallocated arrays. I'm not sure if this is ideal, the code would be much simpler if it used just a simple pass (but then sample arrays will need to be concatenated).