pymovements.dataset.DatasetPaths.raw_to_event_filepath#

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

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 | None) – 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(). (default: None)

  • extension (str) – extension specifies the fileformat to store the data. (default: ‘feather’)

Returns:

The Path to the event feather file.

Return type:

Path