remove_offset

pylook.calc.remove_offset(data, start_idx, end_idx, set_between=False)

Remove offsets in the data.

Parameters
  • data (pint.Quantity) – Date to be operated upon.

  • start_idx (int) – Index that marks the start of the offset.

  • end_idx (int) – Index that marks the end of the offset.

  • set_between (int) – Set the data after the start point up to the end point to have the value of the start point. Default is False.

Returns

data (pint.Quantity) – Data with offset applied.

Examples using pylook.calc.remove_offset