Last active
September 14, 2015 23:19
-
-
Save lkishline/3d7f35b0ca428caadc3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Sep 14 15:19:05 2015 | |
@author: labsner | |
""" | |
import numpy as np | |
from expyfun import (ExperimentController) | |
from expyfun.visual import ConcentricCircles | |
bg_color = [0.2] * 3 | |
fix_color = [0.5] * 3 | |
with ExperimentController('Test', verbose=True, full_screen=True) as ec: | |
ec.flip() | |
ec.screen_prompt('Welcome to the experiment!\n\nIn a moment, we will ' | |
'perform a screen calibration and then you will begin ' | |
'the block.\n\nPress a button to continue.', | |
min_wait=1.0, max_wait=np.inf) | |
dot = ConcentricCircles(ec, units='deg', pos=[0, 0], | |
colors=[fix_color, bg_color]) | |
dot.draw() | |
ec.flip() | |
ec.wait_secs(1.0) | |
ec.screen_prompt('Starting block (1). To begin, please press 1 to ' | |
'contiue to eye calibration.\n\nIf you need a quick break' | |
'please take a minute to rest or exit the booth.', | |
live_keys=('1'), min_wait=0.5, pos=(0, 0), units='deg') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment