pymovements.Experiment.to_yaml#

Experiment.to_yaml(path: str | Path, *, exclude_none: bool = True) None[source]#

Save an experiment to a YAML file.

Parameters:
  • path (str | Path) – Path where to save the YAML file to.

  • exclude_none (bool) – Exclude attributes that are either None or that are objects that evaluate to False (e.g., [], {}, EyeTracker()). Attributes of type bool, int, and float are not excluded.