xdf-modules / pyxdf

Python package for working with XDF files
BSD 2-Clause "Simplified" License
34 stars 16 forks source link

Merge streams #79

Open niteshbhatia008 opened 2 years ago

niteshbhatia008 commented 2 years ago

I am looking for a way to merge multiple streams (like EEG, ECG, events) into a single stream or a dataframe in python. Any suggestions? Thank you.

agricolab commented 2 years ago

Do you want to synchronize the streams in a way that they all have the sampling rate and samples are at the same time? There is a pull request on this topic: https://github.com/xdf-modules/pyxdf/pull/1 / https://github.com/sccn/xdf/pull/28

Does this describe your requirements or do you have something else in mind?

cbrnr commented 2 years ago

Do you really have these signals as separate streams? Usually, EEG, ECG, EOG, ... are associated with only one stream. Merging marker streams is already implemented in mnelab.io.xdf.read_raw_xdf (https://github.com/cbrnr/mnelab).