CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
utils.cpython-310.pyc17 linesDownload Raw Back to __pycache__
1o

2'�Yi`�@s8ddlZddlmZddlmZ	ddd�Zd	d3�ZdS)�N�)�_validate_type�)�Calibration��screen_sizeZscreen_resolution�screen_distancecCsDg}|D]}|�|d�dur|�|�q|r tdd�|�����dS)NzCCalibration object must have the following keys with valid values: z, T)�get�append�KeyError�join)�calibration�	want_keysZmissing_keys�key�r��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\mne/preprocessing/eyetracking/utils.py�_check_calibrations4���rcCs@t|td�t|dd�t�|d�}dt�|d|d�S)a�Calculate the radians of visual angle that the participant screen subtends.5 6    Parameters7    ----------8    calibration : Calibration9        An instance of Calibration. Must have valid values for ``"screen_size"`` and10        ``"screen_distance"`` keys.11 12    Returns13    -------14    visual angle in radians : ndarray, shape (2,)15        The visual angle of the monitor width and height, respectively.16    r
)rr)rr�r)rrr�np�arrayZarctan)r
�sizerrr�get_screen_visual_anglesr)r)�numpyr�utilsrr
rrrrrrr�<module>s17�
Aluode/PerceptionLabPortable · CoolFace