Generic Light Device class

class pyActigraphy.light.GenLightDevice(input_fname, channels=[], rsfreq=None, agg='mean', log10_transform=True, start_time=None, period=None, dayfirst=True)[source]

Generic light acquisition device

Parameters
  • input_fname (str) – Path to the file.

  • channels (list of str, optional) – Select channels to read from the input file. If the list is empty, all channels are read. Default is [].

  • rsfreq (str, optional) – Resampling frequency. Cf. #timeseries-offset-aliases in <https://pandas.pydata.org/pandas-docs/stable/timeseries.html>. Default is None.

  • agg (str, optional) – Aggregation function to use when resampling. Default is ‘mean’.

  • log10_transform (bool, optional) – If set to True, data are (log10+1)-transformed. Default is True.

  • start_time (datetime-like, optional) – Read data from this time. Default is None.

  • period (str, optional) – Length of the read data. Cf. #timeseries-offset-aliases in <https://pandas.pydata.org/pandas-docs/stable/timeseries.html>. Default is None (i.e all the data).

  • dayfirst (bool, optional) – If set to True, the timestamps are parsed as DD/MM/YYYY

Attributes

cct

Value of the CCT (in K).

duv

Value of the delta u,v.

tilt

Value of the tilt (in °).

triggered_by_user

Value of the marker 'TriggeredByUser'.