Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] time_histogram handles single neo.SpikeTrain #650

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Update elephant/test/test_statistics.py
Moritz-Alexander-Kern authored Jan 8, 2025

Verified

This commit was signed with the committer’s verified signature.
mdehoog Michael de Hoog
commit 7fee5adcaa5daf7754256cfd39d6b5dad2976348
1 change: 0 additions & 1 deletion elephant/test/test_statistics.py
Original file line number Diff line number Diff line change
@@ -1095,7 +1095,6 @@ def test_time_histogram_regression_648_single_spiketrain(self):

# Run time_histogram with spiketrain directly and observe the incorrect result
histogram_direct = statistics.time_histogram(spiketrain, output='rate', bin_size=0.5 * pq.s)
print("Histogram (direct):", histogram_direct)

# Wrap spiketrain in a list and run time_histogram
histogram_wrapped = statistics.time_histogram([spiketrain], output='rate', bin_size=0.5 * pq.s)