The Open Neurophysiology Environment
Public
Exploring IBL Data
Miscellaneous
Examples & Tutorials
API Reference
Classes
TestSpacer
TestSpacersFromFronts
Tests for Spacer.find_spacers_from_fronts
Bases: TestCase
TestCase
Generates a fake signal with 2 spacers and finds them
Hook method for setting up the test fixture before exercising it.
Test Spacer.find_spacers_from_fronts with usual spacer
Test behaviour when a signal is passed in that doesn’t contain any spacers.
Test whether it can deal with noise in the spacer signal.
NB: Currently any noise will result in no spacer detection.
Test is different spacer parameters
Detects Rising and Falling edges of a voltage signal, returns indices and polarities.
signal (numpy.array) – Array on which to compute RMS
numpy.array – Array of indices
numpy.array – Array of polarities {1, -1}