Skip to content

A small tool to transform time series data from an .xdf-file into mne's RawArray data structure.

License

Notifications You must be signed in to change notification settings

jzerfowski/xdf2mne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xdf2mne

A small tool to transform time series data from a .xdf-file into mne's RawArray data structure. To find out how to use, take a look at example.py and the comments in xdf2mne.py.

Requirements as to sampling rate steadiness and other things are also pointed out in the code comments.

In short:

import pyxdf
from xdf2mne import stream2raw


streams, fileheader = pyxdf.load_xdf('your_xdf_filepath', dejitter_timestamps=True)
raw, events, event_id = stream2raw(streams[0], marker_stream=streams[1])

Enjoy!

Requirements

I cannot promise that this tool will work with older or newer versions of these packages. In fact, I won't even promise it will work at all, but for me it does what I need it to do.

About

A small tool to transform time series data from an .xdf-file into mne's RawArray data structure.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages