coordinates.mixins.core.CoordinateSystemAxesMixin.in_canonical_order#

CoordinateSystemAxesMixin.in_canonical_order(iterable: Sequence[Any], src_axes: Sequence[str]) List[Any][source]#

Reorder a sequence of values from src_axes order to canonical axis order.

Parameters:
  • iterable (list) – Items corresponding to axes in src_axes order.

  • src_axes (list of str) – Axis names corresponding to the order of iterable.

Returns:

Reordered iterable in the canonical axis order (self.axes).

Return type:

list

Raises:

ValueError – If the lengths don’t match or any axes are unknown.