xdf 0.1.0 copy "xdf: ^0.1.0" to clipboard
xdf: ^0.1.0 copied to clipboard

Read and write XDF (Extensible Data Format) recordings, as made by LabRecorder: whole files in memory like pyxdf (clock synchronisation, dejittering), or large files indexed for fast viewing. Pure Dar [...]

xdf #

Read and write XDF (Extensible Data Format) recordings, the file format of LabRecorder and the Lab Streaming Layer. Pure Dart; works on all platforms, including the web.

  • loadXdf(bytes): a whole file in memory, like pyxdf's load_xdf: clock synchronisation (robust fit, clock reset detection), jitter removal and effective rates, with pyxdf's algorithms and defaults. Tested against pyxdf 1.17.5 on the xdf-modules example files (see test/fixtures).
  • XdfFile.open(ByteSource): large files without loading them: one indexing pass builds summary pyramids per regular stream (from signal_core), so overviews, zooming and filtered windows are fast; markers and irregular streams are kept in memory. A stream without breaks gets exactly pyxdf's time stamps.
  • XdfWriter: write files as data comes in (headers, samples, clock offsets, boundaries, footers), e.g. to record LSL streams.
  • readChunks, readSamples: the raw chunks.
final rec = loadXdf(File('session.xdf').readAsBytesSync());
for (final s in rec.streams) {
  print('${s.info.name}: ${s.length} samples at ${s.effectiveRate} Hz');
}
0
likes
130
points
62
downloads

Documentation

API reference

Publisher

verified publisherzeyus.com

Weekly Downloads

Read and write XDF (Extensible Data Format) recordings, as made by LabRecorder: whole files in memory like pyxdf (clock synchronisation, dejittering), or large files indexed for fast viewing. Pure Dart, web-safe.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

signal_core, xml

More

Packages that depend on xdf