pymovements.dataset.Dataset.pix2deg#

Dataset.pix2deg(verbose: bool = True) Dataset#

Compute gaze positions in degrees of visual angle from pixel coordinates.

This method requires a properly initialized experiment attribute.

After success, the gaze dataframe is extended by the resulting dva columns.

Parameters:

verbose (bool) – If True, show progress of computation. (default: True)

Returns:

Returns self, useful for method cascading.

Return type:

Dataset

Raises:

AttributeError – If gaze is None or there are no gaze dataframes present in the gaze attribute, or if experiment is None.