pyActigraphy.sleep.SleepBoutMixin.active_durations¶
- SleepBoutMixin.active_durations(duration_min=None, duration_max=None, algo='Roenneberg', *args, **kwargs)[source]¶
Duration of the active bouts.
Duration of the activity periods identified as active.
- Parameters
duration_min (str,optional) – Minimal time duration for an active period. Default is None (no filtering).
duration_max (str,optional) – Maximal time duration for an active period. Default is None (no filtering).
algo (str, optional) – Sleep/wake scoring algorithm to use. Default is ‘Roenneberg’.
*args – Variable length argument list passed to the scoring algorithm.
**kwargs – Arbitrary keyword arguements passed to the scoring algorithm.
- Returns
active_durations
- Return type
a list of pandas.TimeDelta
Examples
>>> import pyActigraphy >>> rawAWD = pyActigraphy.io.read_raw_awd(fpath + 'SUBJECT_01.AWD') >>> raw.active_durations(duration_min='2h', algo='Roenneberg') XXX