visiomode.models.Response¶
- class visiomode.models.Response(timestamp: str, pos_x: float, pos_y: float, dist_x: float, dist_y: float)¶
Bases:
Base
- timestamp¶
String trial date and time (ISO format). Defaults to current date and time.
- Type
str
- pos_x¶
Float representing the touch position in the x-axis.
- Type
float
- pos_y¶
Float representing the touch position in the y-axis.
- Type
float
- dist_x¶
Float representing the distance travelled while touching the screen in the x-axis.
- Type
float
- dist_y¶
Float representing the distance travelled while touching the screen in the y-axis.
- Type
float
- __init__(timestamp: str, pos_x: float, pos_y: float, dist_x: float, dist_y: float) None ¶
Methods
__init__
(timestamp, pos_x, pos_y, dist_x, dist_y)to_dict
()Returns class instance attributes as a dictionary.
to_json
()Returns class instance attributes as JSON.
Attributes
- to_dict()¶
Returns class instance attributes as a dictionary.
- to_json()¶
Returns class instance attributes as JSON.