ibllib.tests.test_ephys
Functions
Classes
Unit tests for ibllib.ephys.spikes.driftmap_spike_sorting_memmap. |
|
Comprehensive tests about geometry are run as part of the spikeglx reader testing suite |
- class TestNeuropixel(methodName='runTest')[source]
Bases:
TestCaseComprehensive tests about geometry are run as part of the spikeglx reader testing suite
- class TestEphysQC(methodName='runTest')[source]
Bases:
TestCase- tempdir = None
- classmethod setUpClass() None[source]
Hook method for setting up class fixture before running tests in the class.
- class TestDetectSpikes(methodName='runTest')[source]
Bases:
TestCase- test_spike_detection()[source]
Test that creates a synthetic dataset with spikes and an amplitude decay function with the probe gemetry, and then pastes spikes all around the dataset and detects and de-duplicates The test is feeding the detections in a new round of simulation, and then computing the zero-lag cross-correlation between input and simulated output, and asserting on the similarity
- class TestDriftmapSpikeSortingMemmap(methodName='runTest')[source]
Bases:
TestCaseUnit tests for ibllib.ephys.spikes.driftmap_spike_sorting_memmap.
- rec_len = 300.0
- firing_rate = 50
- test_output_matches_brainbox_driftmap()[source]
Chunked histogram is identical to the image produced by brainbox.plot.driftmap.
- test_spike_count_conserved()[source]
Sum of histogram bins equals n_spikes (no spikes lost or double-counted).