open-ephys / open-ephys-python-tools

Python code for interacting with the Open Ephys GUI
MIT License
28 stars 17 forks source link

How to fix OpenEphys .continuous with time discontinuities #27

Open weiglszonja opened 10 months ago

weiglszonja commented 10 months ago

Hey,

We have a similar issue to https://github.com/open-ephys/open-ephys-python-tools/issues/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: https://github.com/open-ephys/open-ephys-python-tools/issues/25#issuecomment-1764962078

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

jsiegle commented 10 months ago

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