pyActigraphy.sleep.SleepBoutMixin.active_bouts

SleepBoutMixin.active_bouts(duration_min=None, duration_max=None, algo='Roenneberg', *args, **kwargs)[source]

Active bouts.

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_bouts

Return type

a list of pandas.Series

Examples

>>> import pyActigraphy
>>> rawAWD = pyActigraphy.io.read_raw_awd(fpath + 'SUBJECT_01.AWD')
>>> raw.active_bouts(duration_min='2h', algo='Roenneberg')
XXX