coordinates.mixins.core.CoordinateSystemAxesMixin.order_axes#

static CoordinateSystemAxesMixin.order_axes(src_axes: Sequence[str], dst_axes: Sequence[str]) List[str][source]#

Reorder src_axes into the order defined by dst_axes.

Parameters:
  • src_axes (list of str) – A subset of axis names to reorder.

  • dst_axes (list of str) – The desired axis ordering to match (typically canonical axes).

Returns:

Reordered version of src_axes to match the order in dst_axes.

Return type:

list of str

Raises:

ValueError – If any element in src_axes is not present in dst_axes.