FL.helpers.interpolation.remove_axis_from_list

FL.helpers.interpolation.remove_axis_from_list(seq: list[int], interpolation: float) None

Adjust the length of a list in place by halving it (= removing an MM axis). The interpolation factor will be used to interpolate the remaining values.

Parameters:
  • seq (list[Any]) – The list to be adjusted.

  • interpolation (float, optional) – The interpolation factor. Defaults to 0.0.

Raises:

ValueError – If the list has an odd number of elements.