NeuralEnsemble / 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://neo.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
316 stars 249 forks source link

Add more resampling functionality for Analog and IrregularlySampledSignals #785

Open JuliaSprenger opened 4 years ago

JuliaSprenger commented 4 years ago

Currently Signals can be resampled based on regular sampling intervals. Additionally it would make sense to be able to provide irregular sampling times and extract the corresponding values (via interpolation) from Analog as well as IrregularlySampledSignals. See also outdated resample method removed in #776.

apdavison commented 4 years ago

Probably more useful than providing irregular sample times would be to have Neo calculate the sample times based on the time derivative of the signal (fewer samples when the signal is changing slowly...)

JuliaSprenger commented 4 years ago

Yes, that's also a good idea. However, this internally requires a method for sampling at specific times, which I think we can then also make accessible to the user, just in case this might be of interest.