lisa.datautils.df_window_signals#

lisa.datautils.df_window_signals(df, window, signals, compress_init=False, clip_window=True)[source]#

Similar to df_window() with method='pre' but guarantees that each signal will have a values at the beginning of the window.

Parameters:
  • window (tuple(object)) – two-tuple of index values for the start and end of the region to select.

  • signals (list(SignalDesc)) – List of SignalDesc describing the signals to fixup.

  • compress_init (bool) – When False, the timestamps of the init value of signals (right before the window) are preserved. If True, they are changed into values as close as possible to the beginning of the window.

  • clip_window – See df_window()