I was wondering what are the consequences of the situation in which the screen size specified in the eye-tracker .yaml file (in mm) doesn’t match the screen size specified in PsychoPy (in pixels). For example, the .yaml file specifies screen size of 530 mm x 300 mm (width x height) which would roughly correspond to 2003 x 1134 pixels, but in PsychoPy the screen size is 1920 x 1080 pixels.
Correct measurements are required by window units like ‘cm’ and ‘deg’. Having this information mismatch the display will cause stimuli to appear to have the wrong size.
An iohub .yaml file can contain information about the diplsay being used for eye tracker calibration, including the screen’s physical dimentions and the distance the subject is sitting from the screen:
These are different than the screen resolution that is set for the experiment. They are only used by iohub to 1) record this info to the iohub data file, and 2) calculate pixels per degree (if / when needed). If these values are wrong, it will not impact the accuracy of the gaze data because iohub reports eye tracker position using the coord type specified when you create the psychopy window. You can test this by running the selectTracker Coder demo and see that the displayed gaze position is correct (assuming a good calibration ofcourse).