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

spiketimes exceeds recording duration #42

Open

Description

@lepmik

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?

Activity

  1. jsiegle commented on Apr 25, 2017

    @jsiegle
    Member

    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).

  2. lepmik commented on Apr 28, 2017

    @lepmik
    Author
  3. aacuevas commented on Apr 28, 2017

    @aacuevas
    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions