pymovements.datasets.toy_dataset.ToyDataset.pix2deg#

ToyDataset.pix2deg(verbose: bool = True) None[source]#

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.

Raises:

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