(self, names)
Initializes a new `RegularNamedAxis` instance.

    Args:
      names: A list or array of element names.
Initializes a new `RegularNamedAxis` instance.
Initializes a new RegularNamedAxis instance .
def __init__(self, names):
    """Initializes a new `RegularNamedAxis` instance.

    Args:
      names: A list or array of element names.
    """
    self._names = names
    self._names_to_offsets = {name: offset
                              for offset, name in enumerate(names) if name}
def __init__ ( self , names ) : self . _names = names self . _names_to_offsets = { name : offset for offset , name in enumerate ( names ) if name }