-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.py
More file actions
25 lines (21 loc) · 892 Bytes
/
constants.py
File metadata and controls
25 lines (21 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This file is required for the PyGaze examples. It is automatically loaded by
# PyGaze, and will be used to provide default values for its classes.
import os
# DISPLAY
# The DISPTYPE determines what library is used to present visual stimuli. This
# can be "pygame" or "psychopy".
DISPTYPE = "psychopy"
# The DISPSIZE sets the resolution in pixels.
DISPSIZE = (1920, 1080)
# FILES AND FOLDERS
# Automatically detect what directory this file is in.
DIR = os.path.dirname(os.path.abspath(__file__))
# Construct a data directory to store data files in.
DATADIR = os.path.join(DIR, "data")
# Create the DATADIR if it does not exist yet.
if not os.path.isdir(DATADIR):
os.mkdir(DATADIR)
# Ask the experimenter to write a file name for the event log file.
LOGFILENAME = raw_input("What is the file name? ")
# Construct the path to the log file.
LOGFILE = os.path.join(DATADIR, LOGFILENAME)