pymovements.dataset.DatasetPaths.raw_to_event_filepath#

DatasetPaths.raw_to_event_filepath(raw_filepath: Path, *, events_dirname: str | None = None, extension: str = 'feather') Path[source]#

Get event filepath in accordance to filepath of the raw file.

The event filepath will point to file with the specified extension.

Parameters:
  • raw_filepath (Path) – The Path to the raw file.

  • events_dirname (str) – One-time usage of an alternative directory name to save data relative to pymovements.Dataset.path(). This argument is used only for this single call and does not alter pymovements.Dataset.events_rootpath().

  • extension – extension specifies the fileformat to store the data

Returns:

The Path to the event feather file.

Return type:

Path