WrightTools.data.Data.level

Data.level(channel, axis, npts, *, verbose=True)[source]

Subtract the average value of npts at the edge of a given axis.

Parameters:
  • channel (int or str) – Channel to level.

  • axis (int) – Axis to level along.

  • npts (int) – Number of points to average for each slice. Positive numbers take points at leading indicies and negative numbers take points at trailing indicies.

  • verbose (bool (optional)) – Toggle talkback. Default is True.