baccuslab / pyret

Python tools for analysis of neurophysiology data
https://pyret.readthedocs.io/en/master/
MIT License
35 stars 8 forks source link

Allow binspikes in `spktools.py` to accept a time vector as an argument instead of a bin width #6

Closed nirum closed 10 years ago

nirum commented 10 years ago

Currently the function binspikes only accepts a binWidth parameter. This is useful if you want to bin spikes into fixed width time bins. I think it would also be useful to have it accept a time vector and use that for binning spikes.

This could be a separate function, but that seems unnecessary..