-
Notifications
You must be signed in to change notification settings - Fork 18
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
Bug/Unexpected effect in global timestamp computation #21
Comments
Hi, This should be fixed in the latest release here: |
Thank you, yesterday's release seems to fix it. |
Sorry, I misread in the diff of the latest merge that the sorting of the events dataframe was changed, but this is not the case for BinaryRecording instances. See open-ephys-python-tools/src/open_ephys/analysis/formats/BinaryRecording.py Lines 206 to 209 in e7a6656
The original issue remains in https://github.com/open-ephys/open-ephys-python-tools/releases/tag/v0.1.5 |
I see. Does changing timestamp to sample_number on line 207 above fix the issue on your end w/ version 0.1.5? |
I assume so. It's done like that for the
|
OpenEphys GUI:
0.6.4
open-ephys-python-tools:
0.1.4
In a recently acquired session, global timestamps are miscalculated, because the events are sorted by
timestamp
, but thesample_number
is therefore shuffled. When the global timestamp function takes theiloc[0]
andiloc[-1]
sample_number
, then these are not the first and last sample in the acquisition.You can see already in the head of the events dataframe that the sorting of the
sample_number
is random:When checking the synchronization event counts and sample differences between the synch channels, they match perfectly, just not according to the built-in function.
Note that with the negative
timestamp
values, the timestamps set to-1
asnot synchronized
are in the middle section of the events dataframe.The text was updated successfully, but these errors were encountered: