cardioception.PAT.task.run#
- cardioception.PAT.task.run(parameters, runTutorial=True, confidenceRating=True)[source]#
Run the Phase Adjustment Task.
Instructions, the dial tutorial, nPractice practice trials, then nTrials main trials with a break every nBreaking. Results are saved after every trial. Esc at any point stops the task and keeps what was saved; the window and the engine stay open for the caller to close.
The engine’s
idle_pollis the window’s per-frame hook for the length of the session, so beats are detected on every screen between trials.- Parameters
- parametersdict
Task parameters, from
cardioception.PAT.parameters.getParameters().- runTutorialbool
If True, let the participant try the dial on a few free beats before the practice trials.
- confidenceRatingbool
If True, ask for a confidence rating after each trial.