CompAero/internal.py
def named_header(name: str, value: Union[float, int], precision: int) -> str:
    """Generates a title header for the table

    Args:
        name (str): name to be put in header
        value (Union[float, int, bool]): Value that is to be printed
        precision (int, optional): precision to round value to. Defaults to 4.
    Returns:
        str: A formatted string that can be used as a header
    """
    return (
        footer()
        + "|{:^{width}}|\n".format(
            " {}: {:.{precision}f} ".format(name, round(value, precision), precision=precision),
            width=INTERNAL_VALUE_WIDTH,
        )
        + footer()
    )
Generates a title header for the table

    Args:
        name (str): name to be put in header
        value (Union[float, int, bool]): Value that is to be printed
        precision (int, optional): precision to round value to. Defaults to 4.
    Returns:
        str: A formatted string that can be used as a header
    
Generates a title header for the table
Generates a title header for the table
def named_header(name: str, value: Union[float, int], precision: int) -> str:
    return (
        footer()
        + "|{:^{width}}|\n".format(
            " {}: {:.{precision}f} ".format(name, round(value, precision), precision=precision),
            width=INTERNAL_VALUE_WIDTH,
        )
        + footer()
    )
def named_header ( name : str , value : Union [ float , int ] , precision : int ) -> str : return ( footer ( ) + "|{:^{width}}|\n" . format ( " {}: {:.{precision}f} " . format ( name , round ( value , precision ) , precision = precision ) , width = INTERNAL_VALUE_WIDTH , ) + footer ( ) )
Generates a title header for the table
Generates a title header for the table
"""Generates a title header for the table

    Args:
        name (str): name to be put in header
        value (Union[float, int, bool]): Value that is to be printed
        precision (int, optional): precision to round value to. Defaults to 4.
    Returns:
        str: A formatted string that can be used as a header
    """
A formatted string that can be used as a header
A formatted string that can be used as a header
str
name
str
name to be put in header
name to be put in header
value
Union[float, int]
Value that is to be printed
Value that is to be printed
precision
int
precision to round value to. Defaults to 4.
precision to round value to . Defaults to 4 .
4