-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read xdf files (primitive) #10420
base: main
Are you sure you want to change the base?
read xdf files (primitive) #10420
Conversation
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴🏽♂️ |
ping @cbrnr |
Hi @lokinou, this is awesome! However, in the meantime we have already a working implementation which also supports multiple streams simultaneously (via resampling) in MNELAB. Would you mind checking out our implementation and if you have any comments or suggestions (e.g. some feature that you have implemented that we don't) let us know? We could also discuss moving the reader from MNELAB to MNE, so far we have not reached a conclusion if this is what we want (given that XDF usually contains other non-M/EEG streams that MNE cannot process). |
I am open to rediscuss
what I remember is that we need to handle the fact that xdf can have
irregular sampling
and different sampling rates between streams
… Message ID: ***@***.***>
|
I convert these to annotations.
This works now by resampling. |
@cbrnr Hello, I must admit I realized a few hours after that it's a shameless copy paste from your code from MNELab with a few flexibility additions (find by stream name and stream type). I must apologise for that 😅, I had a feeling function header wasn't my style but I forgot where it came from. I think the dicussion you're having is above my level, but from what i see the code realigns markers with the first EEG timestamp: |
what do you think @cbrnr is pyxdf stable/maintained enough to add a read_raw_xdf in mne? |
Yes, but I don't think this is super urgent. If people want to read XDF now, they can do |
ok !
… Message ID: ***@***.***>
|
The reason I made this solution in the first place is that the |
Hi, I have implemented a code to read xdf files and I'd like to share it with my colleagues.
I assumed this would be the right place to do it
What does this implement/fix?
adds read xdf file to raw
Additional information
Can't figure out how to write the tests but I provided a sample.
I could provide a smaller test sample and redo the git history if size (32MB) is excessive