pyavs.save_annotated_raw

pyavs.save_annotated_raw(raw: mne.io.Raw, subject_id: int, session: int, data_path: str | None = None, suffix: str = 'annotated', recording_type: str | None = None, **kwargs) str[source]

Save annotated Raw data in HDF5 format.

Parameters:
  • raw (mne.io.Raw) – Annotated Raw object to save

  • subject_id (int) – Subject ID

  • session (int) – Session number

  • data_path (str, optional) – Path to data directory

  • suffix (str, optional) – File suffix (default: ‘annotated’)

  • recording_type (str, optional) – Recording type to include in filename (‘scene’, ‘microphone’, ‘caption’)

  • **kwargs – Additional parameters for save_data_h5

Returns:

Path to saved file

Return type:

str