INM-6 / python-neo

Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats
http://packages.python.org/neo/
BSD 3-Clause "New" or "Revised" License
3 stars 10 forks source link

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

Open JuliaSprenger opened 9 years ago

JuliaSprenger commented 9 years ago

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.

mdenker commented 7 years ago

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