ibllib.tests.qc.test_task_metrics

Classes

TestAggregateOutcome

TestHabituationQC

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

TestTaskMetrics

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

Bases: unittest.case.TestCase

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

Bases: unittest.case.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: unittest.case.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]