From 06f55481def513f59ed95fe56d88b7a35f73a3ee Mon Sep 17 00:00:00 2001 From: Erica Peterson Date: Tue, 18 Jun 2019 14:15:49 -0700 Subject: [PATCH] Edits to help control for screen refresh rates measured under 60 Hz. --- experiments/r21/r21_ssvep.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/experiments/r21/r21_ssvep.py b/experiments/r21/r21_ssvep.py index 22285d0..7de7ffd 100644 --- a/experiments/r21/r21_ssvep.py +++ b/experiments/r21/r21_ssvep.py @@ -126,7 +126,11 @@ # imtype_shuf=imtype_shuf)) realRR = ec.estimate_screen_fs(n_rep=20) + ec.write_data_line('realRR:', realRR) # we should keep a record of that measurement + print('realRR:', realRR) # and it should be visible to the operator realRR = round(realRR) + assert realRR == 60 # the assertion will throw an error if realRR is ever something other than 60 + fr = 1./realRR adj = fr/2 # Adjustment factor for accurate flip # Wait to fill the screen