Skip to content

Commit

Permalink
check if result is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz-Alexander-Kern committed Jan 8, 2025
1 parent 7fee5ad commit f6580e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elephant/test/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,10 +1099,11 @@ def test_time_histogram_regression_648_single_spiketrain(self):
# Wrap spiketrain in a list and run time_histogram
histogram_wrapped = statistics.time_histogram([spiketrain], output='rate', bin_size=0.5 * pq.s)
np.testing.assert_array_equal(histogram_direct.magnitude, histogram_wrapped.magnitude)
np.testing.assert_array_equal(histogram_wrapped.magnitude.flatten(), [2., 2., 2., 2., 2., 0.]*pq.Hz)


class ComplexityTestCase(unittest.TestCase):
def test_complexity_pdf_deprecated(self):
def test_complexiy_pdf_deprecated(self):
spiketrain_a = neo.SpikeTrain(
[0.5, 0.7, 1.2, 2.3, 4.3, 5.5, 6.7] * pq.s, t_stop=10.0 * pq.s)
spiketrain_b = neo.SpikeTrain(
Expand Down

0 comments on commit f6580e0

Please sign in to comment.