ibllib.tests.test_spikeglx

Classes

TestSpikeGLX_glob_ephys

Creates mock acquisition folders architecture (omitting metadata files): ├── 3A │ ├── imec0 │ │ ├── sync_testing_g0_t0.imec0.ap.bin │ │ └── sync_testing_g0_t0.imec0.lf.bin │ └── imec1 │ ├── sync_testing_g0_t0.imec1.ap.bin │ └── sync_testing_g0_t0.imec1.lf.bin └── 3B ├── sync_testing_g0_t0.nidq.bin ├── imec0 │ ├── sync_testing_g0_t0.imec0.ap.bin │ └── sync_testing_g0_t0.imec0.lf.bin └── imec1 ├── sync_testing_g0_t0.imec1.ap.bin └── sync_testing_g0_t0.imec1.lf.bin

TestSpikeGLX_hardwareInfo

TestsSpikeGLX_Meta

TestsSpikeGLX_compress

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

Bases: unittest.case.TestCase

setUp() → None[source]

Hook method for setting up the test fixture before exercising it.

test_get_wiring()[source]
test_get_channel_map()[source]
test_default_values()[source]
class TestSpikeGLX_glob_ephys(methodName='runTest')[source]

Bases: unittest.case.TestCase

Creates mock acquisition folders architecture (omitting metadata files): ├── 3A │ ├── imec0 │ │ ├── sync_testing_g0_t0.imec0.ap.bin │ │ └── sync_testing_g0_t0.imec0.lf.bin │ └── imec1 │ ├── sync_testing_g0_t0.imec1.ap.bin │ └── sync_testing_g0_t0.imec1.lf.bin └── 3B

├── sync_testing_g0_t0.nidq.bin ├── imec0 │ ├── sync_testing_g0_t0.imec0.ap.bin │ └── sync_testing_g0_t0.imec0.lf.bin └── imec1

├── sync_testing_g0_t0.imec1.ap.bin └── sync_testing_g0_t0.imec1.lf.bin

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_glob_ephys()[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

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

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_read_slices()[source]
test_compress()[source]
class TestsSpikeGLX_Meta(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_fix_meta_file()[source]
test_read_corrupt()[source]
test_read_nidq()[source]
test_read_3A()[source]
test_read_3B()[source]
test_check_ephys_file()[source]
assert_read_glx(tglx)[source]
testGetSerialNumber()[source]
testGetRevisionAndType()[source]
testReadChannelGainAPLF()[source]
testGetAnalogSyncIndex()[source]
testReadChannelGainNIDQ()[source]
testReadChannelMap()[source]
testSplitSyncTrace()[source]