MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / reset_input

Function reset_input

brainworkshop.py:4075–4080  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4073# this function causes the key labels along the bottom to revert to their
4074# "non-pressed" state for a new trial or when returning to the main screen.
4075def reset_input():
4076 for k in list(mode.inputs):
4077 mode.inputs[k] = False
4078 mode.input_rts[k] = 0.
4079 arithmeticAnswerLabel.reset_input()
4080 update_input_labels()
4081
4082# this handles the computation of a round with exactly 6 position and 6 audio matches
4083# this function is not currently used -- compute_bt_sequence() is used instead

Callers 3

new_sessionFunction · 0.85
end_sessionFunction · 0.85
updateFunction · 0.85

Calls 2

update_input_labelsFunction · 0.85
reset_inputMethod · 0.80

Tested by

no test coverage detected