Doc_code |

Cargando...
Buscando...
Nada coincide
Espacios de nombres | Funciones | Variables
Referencia del archivo gonogo_test.py

Ir al código fuente de este archivo.

## Espacios de nombres
namespace | gonogo_test

## Funciones
| gonogo_test.euclidean (p1, p2)

## Variables
| gonogo_test.disp = libscreen.Display()
| gonogo_test.tracker = eyetracker.EyeTracker(disp)
| gonogo_test.keyboard = libinput.Keyboard(keylist=['space', 'escape'], timeout=None)
| gonogo_test.log = liblog.Logfile()
| gonogo_test.SCREEN_WIDTH
| gonogo_test.SCREEN_HEIGHT
tuple | gonogo_test.CENTER = (SCREEN_WIDTH // 2, SCREEN_HEIGHT // 2)
tuple | gonogo_test.CENTER1 = (constants.DISPSIZE[0] // 2, constants.DISPSIZE[1] // 2)
int | gonogo_test.TARGET_OFFSET = 382
| gonogo_test.vertical_offset = random.choice([386, -386])
tuple | gonogo_test.left_pos = (CENTER[0] - TARGET_OFFSET, CENTER[1] + vertical_offset)
tuple | gonogo_test.right_pos = (CENTER[0] + TARGET_OFFSET, CENTER[1] + vertical_offset)
| gonogo_test.inscreen = libscreen.Screen()
| gonogo_test.text
| gonogo_test.fontsize
| gonogo_test.pos
| gonogo_test.colour
| gonogo_test.fixscreen = libscreen.Screen()
| gonogo_test.fixtype
| gonogo_test.pw
dict | gonogo_test.signal_screens
| gonogo_test.r
dict | gonogo_test.feedbackscreens
int | gonogo_test.max_blocks = 30
list | gonogo_test.trials = ['PS', 'AS', 'NoGo']
| gonogo_test.targetside = random.choice(['left', 'right'])
tuple | gonogo_test.target_pos = 'left' else right_pos
tuple | gonogo_test.nontarget_pos = 'left' else left_pos
| gonogo_test.dualsim_screen = libscreen.Screen()
| gonogo_test.t0 = time.time()
| gonogo_test.sample = tracker.sample()
| gonogo_test.endpos = sample[:2] if sample else (CENTER[0], CENTER[1])
| gonogo_test.latency = time.time() - t0
| gonogo_test.key_pressed = keyboard.get_key()
| gonogo_test.dist_target = euclidean(endpos, target_pos)
| gonogo_test.dist_nontarget = euclidean(endpos, nontarget_pos)
| gonogo_test.correct = dist_target < dist_nontarget