coordinates.mixins.core.CoordinateSystemAxesMixin.is_axes_superset#
- static CoordinateSystemAxesMixin.is_axes_superset(axes_a: Sequence[str], axes_b: Sequence[str]) bool [source]#
Check if axes_a is a superset of axes_b.
- Parameters:
axes_a (
Sequence[str]
) – The axes to check as a potential superset.axes_b (
Sequence[str]
) – The reference axes that should be contained within axes_a.
- Returns:
True if every axis in axes_b is in axes_a, else False.
- Return type:
Examples
>>> cs.is_superset(["r", "theta", "phi"], ["theta"]) True >>> cs.is_superset(["theta"], ["r", "phi"]) False