NeuralEnsemble / elephant

Elephant is the Electrophysiology Analysis Toolkit
http://www.python-elephant.org
BSD 3-Clause "New" or "Revised" License
202 stars 92 forks source link

[ENH] time_histogram handles single `neo.SpikeTrain` #650

Open Moritz-Alexander-Kern opened 1 week ago

Moritz-Alexander-Kern commented 1 week ago

This pull request addresses issue #648 by updating the statistics.time_histogram function to accept a single neo.SpikeTrain object as input.

Previously, the function was limited to handling lists of spike trains, which led to incorrect results when a single spike train was provided. This enhancement ensures that the function now correctly computes the time histogram for both single and multiple spike trains.

Changes

coveralls commented 1 week ago

Coverage Status

coverage: 88.257% (-0.1%) from 88.401% when pulling 9c06d0d02010e3f559fefcd87648f0a7401b28a9 on INM-6:fix/time_histogram_648 into 123ca040b11a5961643c4de080df89af9b1fcd24 on NeuralEnsemble:master.