Source code for gana.utils.printing
"""Printing Utilities"""
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from ..sets.index import I
[docs]
def multi_name(*index: I) -> str:
"""
Returns a name for tuple index with underscores
:param index: index set
:type index: I
:returns: name with underscores
:rtype: str
"""
return "_".join([i.name for i in index])