ibllib.tests.integration.test_ephys_trials
Test NI DAQ trials extraction.
Classes
Test the FpgaTrialsHabituation extractor. |
|
Test the FpgaTrials extractor. |
|
- class TestEphysTaskExtraction(*args, **kwargs)[source]
Bases:
IntegrationTestTest the FpgaTrials extractor.
- alf_files = ['_ibl_trials.table.pqt', '_ibl_trials.goCueTrigger_times.npy', '_ibl_trials.quiescencePeriod.npy']
A subset of expected output datasets.
- trials_task
The task to use for trials extraction (may depend on task protocol).
alias of
ChoiceWorldTrialsNidq
- required_files = ['ephys/ephys_choice_world_task/CSP004/2019-11-27/001/*', 'ephys/ephys_choice_world_task/ibl_witten_13/2019-11-25/001/*']
An optional list of required files/folders to glob for, relative to data_path.
- class TestEphysHabituationTaskExtraction(*args, **kwargs)[source]
Bases:
TestEphysTaskExtractionTest the FpgaTrialsHabituation extractor.
- required_files = ['ephys/habituation_choice_world_task/MM015/2023-10-05/002']
An optional list of required files/folders to glob for, relative to data_path.
- trials_task
alias of
HabituationTrialsNidq
- alf_files = ['_ibl_trials.intervals.npy', '_ibl_trials.stimCenter_times.npy', '_ibl_trials.goCue_times.npy', '_ibl_trials.feedback_times.npy', '_ibl_trials.rewardVolume.npy']
A subset of expected output datasets.
- class TestEphysTrialsFPGA(*args, **kwargs)[source]
Bases:
IntegrationTest- trials_task
The task to use for trials extraction (may depend on task protocol).
alias of
ChoiceWorldTrialsNidq
- required_files = ['ephys/ephys_choice_world_task/ibl_witten_27/2021-01-21/001', 'ephys/ephys_choice_world_task/ibl_witten_13/2019-11-25/001']
An optional list of required files/folders to glob for, relative to data_path.
- test_missing_first_trial()[source]
Test extraction when FPGA starts before Bpod.
In some BWM sessions the FPGA starts during the first trial, such that the first Bpod trial start pulse is not recorded by the FPGA. This results in the first trial being missing from the FPGA with the added complication of the first trial being a special case in the task: the first Bpod pulse is longer than usual to trigger the cameras and therefore looks closer to a valve open pulse.
- class TestEphysTrials_iblrigv8(*args, **kwargs)[source]
Bases:
IntegrationTest- required_files = ['ephys/ephys_choice_world_task/KM_014/2024-05-02/001/*', 'ephys/ephys_choice_world_task/CSP004/2019-11-27/001/*']
An optional list of required files/folders to glob for, relative to data_path.
- class TestEphysTrials_new_1st_trial(*args, **kwargs)[source]
Bases:
IntegrationTest- required_files = ['ephys/ephys_1st_trial/2025-05-28/001/*']
An optional list of required files/folders to glob for, relative to data_path.
- test_new_1st_trial()[source]
Starting with version 8.28.0 of IBLRIG, the first trial of the state machine is no longer used for timing the initial delay and waiting for the first camera trigger. Instead, the first trial is now identical to the remaining trials. For this reason, extractors can now skip some logic for recovering from edge cases specific to the extraction of the first trial.