![]() isFlag = kwargs if 'isFlag' in kwargs else True # isLibrary self. isDemo = kwargs if 'isDemo' in kwargs else False # turn off eyelink flags self. subject ) '.edf' # generate file path self. close () raise AssertionError ( 'Name must be <= 8 characters.' ) # store name self. close () raise AssertionError ( 'Name must only include A-Z, 0-9, or _' ) # check length if len ( self. splitext ( str ( subject )) # check if integer if re. Please enter the subject number.' ) else : self. TextStim ( win = window, name = 'drift_message', font = 'Helvetica', text = text, height = 0.1, wrapWidth = 1.5, ori = 0, pos = ( 0, 0 ), alignVert = 'center', color = 'black', colorSpace = 'rgb', opacity = 1, depth = 0.0 ) # check if subject number has been entered if subject = None : raise AssertionError ( 'Subject number not entered. routineTimer = timer #-drift correction #clock self. console ( "imhr.eyetracking(): screensize. Installing from PyPI", 'red' ) settings. system () = 'Darwin' : # try to import try : import pyobjc from AppKit import NSScreen except ImportError : self. system () = "Windows" : # try to import try : from win32api import GetSystemMetrics except ImportError : self. console ( "imhr.eyetracking() found.", 'green' ) #-screen size if isPsychopy : self. NOT_STARTED = NOT_STARTED #-introduction self. ![]() """ #-imports # psychopy from psychopy import visual, core, event from nstants import ( NOT_STARTED, STARTED, FINISHED ) #-constants # core self. 7) Report the trial result, and return an appropriate error code. 6) Blank the display, stop recording after an additional 100 milliseconds of data has been collected. 5) Add special code to handle gaze-contingent display updates. 4) Loop until one of these events occurs RECORDING halts, due to the tracker ABORT menu or an error, the maximum \ trial duration expires 'ESCAPE' is pressed, the program is interrupted, or abutton on the EyeLink button box is pressed. 3) Draw the subject display, recording the time that the display appeared by placing a message in the EDF file. ![]() 2) Start recording, allowing 100 milliseconds of data to accumulate before the trial display starts. Examples - > eytracking = imhr.eyetracking(window=window, subject=subject) Notes - According to `pylink.chm `_, the sequence of operations for implementing a trial is: 1) Perform a DRIFT CORRECTION, which also serves as the pre-trial fixation target. * - **demo** : :obj:`bool` - Run demo mode, which includes region of interest highlighting and other testing methods. * - **isLibrary** : :obj:`bool` - Check if required packages have been installed. list-table:: :class: kwargs :widths: 25 50 :header-rows: 1 * - Property - Description * - **isFlag** : :obj:`bool` - Bypass Eyelink flags (`isRecording`, `isConnected`) to run all functions without checking flags. ![]() **kwargs : :obj:`str` or :obj:`None`, optional Here's a list of available properties. isPsychopy : :obj:`bool` Is Psychopy being used. Parameters - window : ` `_ PsychoPy window instance. class Eyelink (): """Interface for the SR Research Eyelink eyetracking system.""" def _init_ ( self, window, timer, isPsychopy = True, subject = None, ** kwargs ): """Interface for the SR Research Eyelink eyetracking system. (Optional) Collect real-time gaze coordinates from Eyelink.(Optional) Initiate gaze contigent event.(Optional) Print message to console/terminal.Packages (timestamps in pop-ups are UTC):ĭependencies NOTE: FreshPorts displays only information on required and default dependencies. PKGNAME: p圓9-setuptools Package flavors ( : ) Instead of p圓9-setuptools listed in the above command, you can pick from the names under the Packages section. NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. install the port: cd /usr/ports/devel/py-setuptools/
0 Comments
Leave a Reply. |