Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

spiketimes exceeds recording duration #42

Open
lepmik opened this issue Apr 25, 2017 · 3 comments
Open

spiketimes exceeds recording duration #42

lepmik opened this issue Apr 25, 2017 · 3 comments

Comments

@lepmik
Copy link

lepmik commented Apr 25, 2017

When converting time stamps from loadSpikes in OpenEphys.py by dividing by the sample rate I get spike times that are larger than the recording duration e.g.

Spike time 1011.3367666666667 s exceeds duration 983.1765333333333 s

Am I converting time stamps wrongly?

@jsiegle
Copy link
Member

jsiegle commented Apr 25, 2017

Are you taking into account the recording start time (found in the messages.events file)? That will shift the continuous timestamps by a constant value (the spike and event times should already be shifted).

@lepmik
Copy link
Author

lepmik commented Apr 28, 2017 via email

@aacuevas
Copy link
Collaborator

There should be a messages.events file with a line like
XXX Processor: Rhythm FPGA Id: 100 start time: XXX@20000Hz
Substract the XXX to the raw timestamp value for spikes and events to align them to the 0-aligned timestamps of the continuous data.

Since the .dat file does not contain timestamps itself, it is always aligned to 0, but the events and spikes timestamps are stored in its raw format, with the hardware timestamps.

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

No branches or pull requests

3 participants