afam.asc_sample

This module provides all supported ASCII sample classes.

Module Contents

Classes

ASC_SAMPLE

A dataclass representing the basic framework of every ASCII sample.

ASC_MONO

TODO:

ASC_BINO

TODO:

class afam.asc_sample.ASC_SAMPLE[source]

A dataclass representing the basic framework of every ASCII sample.

`t`

timestamp in milliseconds

Type

int

t :int
to_dict()[source]

Convert the ASC_SAMPLE class to a dictionary.

Returns

`self.__dict__` – Dictionary representing all attributes of the ASCII sample

Return type

dict

Example

>>> event = ASC_SAMPLE(t=123456)
>>> event.to_dict()
{t:123456}
class afam.asc_sample.ASC_MONO[source]

Bases: ASC_SAMPLE

TODO:

`t`

time of button press

Type

int

`xp`

monocular X position data

Type

float

`yp`

monocular Y position data

Type

float

`ps`

monocular pupil size (area or diameter)

Type

float

t :int
xp :float
yp :float
ps :float
class afam.asc_sample.ASC_BINO[source]

Bases: ASC_SAMPLE

TODO:

`t`

time of button press

Type

int

`xpl`

left-eye X position data

Type

float

`ypl`

left-eye Y position data

Type

float

`psl`

left pupil size (area or diameter)

Type

float

`xpr`

right-eye X position data

Type

float

`ypr`

right-eye Y position data

Type

float

`psr`

right pupil size (area or diameter)

Type

float

t :int
xpl :float
ypl :float
psl :float
xpr :float
ypr :float
psr :float