pymovements.Experiment.to_dict#
- Experiment.to_dict(*, exclude_none: bool = True) dict[str, Any | dict[str, str | float | None]] [source]#
Convert the experiment instance into a dictionary.
- Parameters:
exclude_none (bool) – Exclude attributes that are either
None
or that are objects that evaluate toFalse
(e.g.,[]
,{}
,EyeTracker()
). Attributes of typebool
,int
, andfloat
are not excluded.- Returns:
Experiment as dictionary.
- Return type:
dict[str, Any | dict[str, str | float | None]]