ibllib.tests.test_dsp

Classes

TestCadzow

TestDspMisc

TestFFT

TestParabolicMax

TestPhaseRegression

TestShift

TestSmooth

TestSyncTimestamps

TestVoltage

TestWindowGenerator

class TestSyncTimestamps(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_timestamps_lin()[source]
class TestParabolicMax(methodName='runTest')[source]

Bases: unittest.case.TestCase

maxi = array([       nan, 0.        , 3.04166667, 3.04166667, 5.        ,        5.        ])
ipeak = array([     nan, 0.      , 5.166667, 2.166667, 0.      , 7.      ])
x = array([[ 0.,  0.,  0.,  0.,  0., nan,  0.,  0.],        [ 0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.],        [ 0.,  0.,  0.,  0.,  1.,  3.,  2.,  0.],        [ 0.,  1.,  3.,  2.,  0.,  0.,  0.,  0.],        [ 5.,  1.,  3.,  2.,  0.,  0.,  0.,  0.],        [ 0.,  1.,  3.,  2.,  0.,  0.,  0.,  5.]])
test_error_cases()[source]
test_2d()[source]
test_1d()[source]
class TestDspMisc(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_dsp_cosine_func()[source]
class TestPhaseRegression(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_fit_phase1d()[source]
test_fit_phase2d()[source]
class TestShift(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_shift_already_fft()[source]
test_shift_floats()[source]
test_shift_1d()[source]
test_shift_2d()[source]
class TestSmooth(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_smooth_lp()[source]
class TestFFT(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_spectral_convolution()[source]
test_nech_optim()[source]
test_imports()[source]
test_freduce()[source]
test_fexpand()[source]
test_fscale()[source]
test_filter_lp_hp()[source]
test_dft()[source]
class TestWindowGenerator(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_window_simple()[source]
test_nwindows_computation()[source]
test_firstlast_slices()[source]
test_tscale()[source]
test_rises_falls()[source]
class TestVoltage(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_fk()[source]

creates a couple of plane waves and separate them using the velocity HP filter

test_rcoeff()[source]
class TestCadzow(methodName='runTest')[source]

Bases: unittest.case.TestCase

trajectory_matrixes()[source]