fill_time_discontinuities#

pypillometry.fill_time_discontinuities(yval=nan, print_info=True)#

Pipeline step for fill_time_discontinuities() (d | pp.fill_time_discontinuities(...)).

Find gaps in the time-vector and fill them in.

A gap is a step between consecutive time points that is larger than twice the median step. New time points are inserted into each gap at the median step size and all data variables are set to yval at these new time points; they are masked as missing. Existing masks are kept and stored blinks (in sample indices) are moved to the new sample positions. This is called by the constructor when fill_time_discontinuities=True.

Parameters:
  • yval (float, optional) – value used for the data in the filled-in gaps; default NaN, so the filled-in samples are masked as missing data (other values: masked by the "user" layer)

  • print_info (bool, optional) – if True (default), log the number of gaps that are filled in

  • inplace (bool or None, optional) – if True, make change in-place and return the object; if False, make and return copy before making changes; if None, use the object-level setting (specified in the constructor)

Return type:

EyeData

Returns:

the object without gaps (self or a copy, depending on inplace)