diff options
author | Mario Mulansky <mario.mulansky@gmx.net> | 2015-10-12 11:20:03 +0200 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2015-10-12 11:20:03 +0200 |
commit | 1fa8493ce15af8cd4c057eece155f1557fc241ea (patch) | |
tree | d664cd11621bb5d6736f946d31dfac0b6041a546 /test | |
parent | b9850d8c3e35290858e4ef0b2f05f66b0f7397b2 (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) |