Skip to content
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

How to fix OpenEphys .continuous with time discontinuities #27

Open
weiglszonja opened this issue Oct 26, 2023 · 1 comment
Open

How to fix OpenEphys .continuous with time discontinuities #27

weiglszonja opened this issue Oct 26, 2023 · 1 comment

Comments

@weiglszonja
Copy link

Hey,

We have a similar issue to #26, where some of the .continuous files have gaps during the recording. Since not all channels have gaps, I was wondering if the solution of @jsiegle still applies here:

Hi Nick – You can use the same method I posted previously to trim both the beginning and end of the recording: #25 (comment)

We need to ensure that the recording data is continuous (no gaps) after trimming, so would it work if

  • iterate over all channels that have gaps
  • find the longest continuous part that works for these channels
  • trim all channels to this length
  • save each channel into a new .continous file
@jsiegle
Copy link
Member

jsiegle commented Oct 26, 2023

Yes, that should work! Make sure to take the file header into account (see the note I just added to #26)

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

No branches or pull requests

2 participants