Skip to content

Inconsistent handling of t_stop, t_start and spike time quantities of SpikeTrains. #2

Open

Description

@JuliaSprenger

When creating a spike train with different units (or no unit) for t_stop, t_start and the spike times Neo automatically assigns a unit to the non-quantity provided.
Example:
SpikeTrain([1,2,3]_pq.ms, t_stop = 10_pq.s, t_start = 0.1) results in a spike train with t_stop = 0.1ms instead of t_stop = 0.1s. Instead raising an error 'ambiguous quantities provided' would make sense.

Activity

  1. mdenker commented on May 2, 2017

    @mdenker
    Member

    Should also check if this occurs, e.g., for Events.times and Events.durations

  2. added a commit that references this issue on Aug 30, 2017
  3. added a commit that references this issue on Apr 17, 2024
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions