Sleep diary class

class pyActigraphy.sleep.SleepDiary(input_fname, start_time, periods, frequency, header_size=2, state_index={'ACTIVE': 2, 'NAP': 1, 'NIGHT': 0, 'NOWEAR': -1}, state_colour={'NAP': '#7bc043', 'NIGHT': '#d3d3d3', 'NOWEAR': '#ee4035'})[source]

Class for reading sleep diaries.

Summary statistics

summary()

Returns a dataframe of summary statistics.

state_infos(state)

Returns summary statistics for a given state

total_bed_time([state])

Returns the total in-bed time

total_nap_time([state])

Returns the total nap time

total_nowear_time([state])

Returns the total 'no-wear' time