wonambi.ioeeg.lyonrri module

Class to import HRV RRI data in text format.

class wonambi.ioeeg.lyonrri.LyonRRI(rec_dir)[source]

Bases: object

Class to read text format RR interval data from HRVanalysis export (INSERM/Lyon). Returns one channel only.

Parameters:

rec_dir (path to record directory) – the folder containing the record

Notes

With code adapted from Rhenan Bartels: https://github.com/rhenanbartels/hrv

create_time(rri)[source]
interpolate(s_freq=4, interp_method='cubic')[source]
return_dat(chan, begsam, endsam)[source]
return_hdr()[source]

Return the header for further use.

Returns:

  • subj_id (str) – subject identification code

  • start_time (datetime) – start time of the dataset

  • s_freq (float) – sampling frequency

  • chan_name (list of str) – list of all the channels

  • n_samples (int) – number of samples in the dataset

  • orig (dict) – the full header

return_markers()[source]

There are no markers in this format.

return_rri(begsam, endsam)[source]

Return raw, irregularly-timed RRI.