cardioception.PAT.task.confidenceRatingTask#

cardioception.PAT.task.confidenceRatingTask(parameters)[source]#

Confidence rating, with the wheel and arrow keys or with the mouse.

The shared rating widgets of cardioception._rating, on parameters["confidenceScale"]. With device="keyboard" the mouse wheel and the arrow keys move the marker and space confirms; with device="mouse" the cursor moves it and a click confirms, once the button that may still be down from the trial has been released. The engine is polled on every frame, so beats keep being detected, and Esc raises TaskAbort, so the trial being rated is kept.

Parameters
parametersdict

Task parameters.

Returns
confidence, confidenceRTfloat | None

The rating and its response time in seconds, None if not given.

ratingProvidedbool

Whether a rating was given before maxRatingTime.