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

TestsBasicReader

Tests the basic usage where there is a flat binary and no metadata associated

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.

tearDown() None[source]

Hook method for deconstructing the test fixture after testing it.

test_fix_meta_file()[source]
test_read_corrupt()[source]
test_read_nidq()[source]
test_read_3A()[source]
test_read_3B()[source]
test_read_NP21()[source]
test_read_NP24()[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]
testWriteMetaData()[source]
testSaveSubset()[source]
class TestsBasicReader(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests the basic usage where there is a flat binary and no metadata associated

test_read_flat_binary_float32()[source]
test_read_flat_binary_int16()[source]