def test__get_correct_rts_blk4(): pid = "104" sart_block = get_sart_trial_block(pid, 3) df = compile_data._add_anticipation_errors(sart_block) rts = compile_data._get_correct_rts(df) assert len(rts) == 49 assert compile_data.np.mean(rts) == 353.36734693877548
def test__get_correct_rts_blk1(): pid = "104" sart_block = get_sart_trial_block(pid) df = compile_data._add_anticipation_errors(sart_block) rts = compile_data._get_correct_rts(df) assert len(rts) == 71 assert compile_data.np.mean(rts) == 288.6056338028169