Skip to content

FIX: timeout and RT calculation in wait_for_button_press#1

Open
rmc-law wants to merge 1 commit intoMRC-CBU:masterfrom
rmc-law:master
Open

FIX: timeout and RT calculation in wait_for_button_press#1
rmc-law wants to merge 1 commit intoMRC-CBU:masterfrom
rmc-law:master

Conversation

@rmc-law
Copy link

@rmc-law rmc-law commented Jul 18, 2023

  1. Original timed_out = t1 - t0 < timeout always returns True immediately if timeout is > 0. Changing the sign of the inequality to > only returns True when time elapsed (i.e., t1 - t0) is greater than the desired period (i.e., timeout)
  2. Function original returns t1, which is less informative than reaction time, which is t1 - t0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant