ibllib.tests.integration.test_ephys_passive

Test passiveChoiceWorld extraction.

Basic passive extraction is tested using ephys/passive_extraction/SWC_054/2020-10-10/001. Chained passive protocol extraction is tested with ephys/passive_extraction/ZFM-05496/2022-12-08/001. Currently ZFM-05496/2022-12-08/001/raw_task_data_00 is not used.

Classes

TestChainedPassiveExtraction

Test for the dynamic pipeline extraction of two chained passive protocols.

TestEphysPassiveExtraction

TestExtractPassivePeriods

TestExtractRFMapping

TestExtractReplayNoiseMissing

TestExtractTaskReplay

TestExtractTaskReplayComponents

TestLoadFixtures

class TestLoadFixtures(*args, **kwargs)[source]

Bases: IntegrationTest

test_load_v7_fixtures()[source]

Test loading of iblrig v7 or less fixtures

test_load_v8_fixtures()[source]

Test loading of iblrig v8 fixtures

test_load_v8_fixtures_repeated()[source]

Test loading of iblrig v8 fixtures with repeated stimuli

test_load_task_replay_fixtures()[source]

Test the main function that selects between v7 and v8 loading

For iblrig less than v8.2.9 it also removes the first Gabor stimulus and shifts the stimuli by one

class TestExtractPassivePeriods(*args, **kwargs)[source]

Bases: IntegrationTest

required_files = ['ephys/passive_extraction/SWC_054/2020-10-10/001']

An optional list of required files/folders to glob for, relative to data_path.

setUp()[source]

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

test_get_spacers_good()[source]

Test that spacers are correctly identified in good data

test_get_spacers_missing()[source]

Test that spacers missing raise value error

class TestExtractRFMapping(*args, **kwargs)[source]

Bases: IntegrationTest

required_files = ['ephys/passive_extraction/SWC_054/2020-10-10/001']

An optional list of required files/folders to glob for, relative to data_path.

setUp()[source]

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

test_extract_rf_mapping()[source]
class TestExtractTaskReplayComponents(*args, **kwargs)[source]

Bases: IntegrationTest

required_files = ['ephys/passive_extraction/SWC_054/2020-10-10/001']

An optional list of required files/folders to glob for, relative to data_path.

setUp()[source]

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

test_extract_gabor()[source]

Test extraction of gabor stimuli on good data

test_extract_audio()[source]

Test extraction of audio stimuli on good data

test_extract_valve()[source]

Test extraction of valve stimuli on good data

class TestExtractTaskReplay(*args, **kwargs)[source]

Bases: IntegrationTest

setUp()[source]

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

test_extract_replay()[source]

Test extraction of full task replay stimuli on good data

class TestExtractReplayNoiseMissing(*args, **kwargs)[source]

Bases: IntegrationTest

setUp()[source]

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

test_extract_replay_noise_missing()[source]

Test extraction of full task replay stimuli for specific case where no noise stimuli were presented, also Gabor fails

class TestEphysPassiveExtraction(*args, **kwargs)[source]

Bases: IntegrationTest

required_files = ['ephys/passive_extraction/SWC_054/2020-10-10/001']

An optional list of required files/folders to glob for, relative to data_path.

setUp() None[source]

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

test_task_extraction()[source]
test_task_extraction_files()[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

class TestChainedPassiveExtraction(*args, **kwargs)[source]

Bases: IntegrationTest

Test for the dynamic pipeline extraction of two chained passive protocols.

Employs the ibllib.pipes.behavior_tasks.PassiveTaskNidq class.

required_files = ['ephys/passive_extraction/ZFM-05496/2022-12-08/001']

An optional list of required files/folders to glob for, relative to data_path.

setUp() None[source]

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

test_chained_passive_task_extraction()[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.