Skip to content

WinWcpRawIO: Add rec_datetime to header dict and block annotation from file #1733

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

danielparthier
Copy link

In the current version of WinWcpRawIO only limited information was read from the file. One missing part was the recording time (rec_datetime) which was now added to the header dict and block annotation.

Copy link
Contributor

@zm711 zm711 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @danielparthier ! Seems like our test file has a different spec where this doesn't exist so could we ask two things:

  1. could you fix your PR to account for whatever version we have with our test repo to account for the fact not all have "RTIME". We often find with hardware devs they change the keys between versions.
  2. could you provide a < 10MB test file of the version you're using so we can include it in our testing suite?

@danielparthier
Copy link
Author

Thanks for the feedback! I just checked your file on the test repo and it seems it really doesn't have the header. You are right that the version on the test repo seems to be older than 2013. I will get a test file and adjust the code to account for the version difference.

@zm711
Copy link
Contributor

zm711 commented Jun 20, 2025

Awesome thanks. We appreciate the update!

@danielparthier
Copy link
Author

I updated the code and added a pull request to the gin repository. Gin didn't like to be run in terminal on my side so I am not 100% it worked because I had to go via the web interface.

@zm711
Copy link
Contributor

zm711 commented Jun 20, 2025

GIN/ G-node is super finicky! From the command line it can be a mess. It looks like your PR includes neuralynx and winwcp files. Did you want to try to submit a PR with just the winwcp files?

Based on the PR it seems like maybe you're working with @Antho2422 since his name is associated with one of the files? If not then I would try to make a completely fresh gin branch and submit a new PR. There are pretty strict privacy rules for EEG data coming out of Europe so the best thing for files (I don't know the use-case super well for winwcp). Is there any patient information included in files?

The file itself looks great though for merging into gin I just need to confirm that nothing private is in the pr.

@danielparthier
Copy link
Author

Ah no... I just wanted to merge the winwcp files. Not sure why the other ones were added...
I really just want my one test file to be added. There is no patient data included for the wcp file (it's a recording from a mouse cell).

@zm711
Copy link
Contributor

zm711 commented Jun 20, 2025

The other option is you can send the file here via zip and we can download it and then upload ourselves. The gin branching mechanism is hard to deal with so I'm not sure how you got the pegasus v2.2 since they aren't on the main branch, but my guess is the client accidentally synced you to the wrong branch.

@danielparthier
Copy link
Author

Yes the zip file sounds like a good option/short-cut. Still not sure how it managed to do that. Thanks for the help!
File_winwcp_2.zip

@h-mayorquin
Copy link
Contributor

Hi, @danielparthier

I can add the file for you. Can you write some short info about the file (channels, size, purpose, etc) and about yourself (if you want) so we add it to the Readme for provenance.

@h-mayorquin
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants