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

No time slice for AnalogSignals #9

Closed mdenker closed 7 years ago

mdenker commented 9 years ago

It would be very useful to slice AnalogSignals by time, just like SpikeTrains.

l=bl.list_children_by_class("SpikeTrain")[0]
print l.time_slice(0,50000)
l=bl.list_children_by_class("AnalogSignal")[0]
print l.time_slice(0,5000)
mdenker commented 9 years ago

Code is developed, needs pull request to Neo.

alperyeg commented 9 years ago

Where is the code? Can you give a link?

mdenker commented 9 years ago

No, I was thinking of Paul's code, but do not know where the latest is, but one version is hidden in here: https://github.com/mdenker/python-neo/commits/master

However, as we now know, we do not need this anymore, since the AnalogSignalArray (which will become the new AnalogSignal) already has the time slice. So we could actually close this issue I think...

mdenker commented 7 years ago

Was ported to neo.