ibllib.tests.qc.test_task_metrics

Classes

TestAggregateOutcome

TestDatasetQC

TestHabituationQC

Test HabituationQC class NB: For complete coverage this should be run along slide the integration tests

TestTaskMetrics

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

Bases: TestCase

test_outcome_from_dict_default()[source]
test_outcome_from_dict_stimFreeze_delays()[source]
test_outcome_from_dict_iti_delays()[source]
test_out_of_bounds()[source]
test_compute_dateset_qc_status()[source]

Test TaskQC.compute_dateset_qc_status method.

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

Bases: TestCase

test_update_dataset_qc()[source]

Test task_metrics.update_dataset_qc function.

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

Bases: TestCase

setUp()[source]

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

static load_fake_bpod_data(n=5)[source]

Create fake extractor output of bpodqc.load_data

Parameters:

n – the number of trials

Returns:

a dict of simulated trial data

static load_fake_wheel_data(trial_data, wheel_gain=4)[source]
test_check_stimOn_goCue_delays()[source]
test_check_response_feedback_delays()[source]
test_check_response_stimFreeze_delays()[source]
test_check_positive_feedback_stimOff_delays()[source]
test_check_negative_feedback_stimOff_delays()[source]
test_check_error_trial_event_sequence()[source]
test_check_correct_trial_event_sequence()[source]
test_check_trial_length()[source]
test_check_goCue_delays()[source]
test_check_errorCue_delays()[source]
test_check_stimOn_delays()[source]
test_check_stimOff_delays()[source]
test_check_stimFreeze_delays()[source]
test_check_reward_volumes()[source]
test_check_reward_volume_set()[source]
test_check_audio_pre_trial()[source]
test_check_wheel_freeze_during_quiescence()[source]
test_check_wheel_move_before_feedback()[source]
test_check_wheel_move_during_closed_loop()[source]
test_check_wheel_integrity()[source]
test_check_n_trial_events()[source]
test_check_detected_wheel_moves()[source]
test_check_stimulus_move_before_goCue()[source]
test_check_stimOff_itiIn_delays()[source]
test_check_iti_delays()[source]
test_check_frame_frequency()[source]
test_check_frame_updates()[source]
class TestHabituationQC(methodName='runTest')[source]

Bases: TestCase

Test HabituationQC class NB: For complete coverage this should be run along slide the integration tests

setUp()[source]

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

static load_fake_bpod_data(n=5)[source]

Create fake extractor output of bpodqc.load_data

Parameters:

n – the number of trials

Returns:

a dict of simulated trial data

test_compute()[source]