diff options
author | Mario Mulansky <mario.mulansky@gmx.net> | 2015-10-12 11:20:03 +0200 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2018-06-02 12:59:43 -0700 |
commit | 6c68690b992a6dfabf8259e265cf427fc6f193eb (patch) | |
tree | 2d929ef6a5108a9ad24976a98096f46893818ff4 /test | |
parent | 18ea80e2d01e9eb4ceee17219f91098efbcdf67c (diff) |
added coincidence single profile to python backend
missing function in python backend added, identified and fixed a bug in the
implementation as well
Diffstat (limited to 'test')
-rw-r--r-- | test/test_sync_filter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_sync_filter.py b/test/test_sync_filter.py index 66ffcb6..e259903 100644 --- a/test/test_sync_filter.py +++ b/test/test_sync_filter.py @@ -28,12 +28,13 @@ def test_single_prof(): coincidence_single_profile_cython as coincidence_impl except ImportError: from pyspike.cython.python_backend import \ - coincidence_single_profile_python as coincidence_impl + coincidence_single_python as coincidence_impl sync_prof = spk.spike_sync_profile(SpikeTrain(st1, 5.0), SpikeTrain(st2, 5.0)) coincidences = np.array(coincidence_impl(st1, st2, 0, 5.0, 0.0)) + print(coincidences) for i, t in enumerate(st1): assert_equal(coincidences[i], sync_prof.y[sync_prof.x == t], "At index %d" % i) |