strip_axis_from_label¶
- strip_axis_from_label(child_label, axis_name)[source]¶
Remove the (axis_name, value) pair from a child label to get the base key.
Child labels are sequences of (axis_name, value) pairs. This returns the same tuple with any element whose first element equals axis_name removed.
Example:
>>> strip_axis_from_label((('ham', 0), ('obs', 1), ('qem', 2)), 'obs') (('ham', 0), ('qem', 2))