mds_plugin/compute.py
def format_shape_listing(data):
    """Returns a formated list of shapes.

    Args:
        data (list): A list of shape objects.

    Returns:
        The formated list as string
    """
    out = ""

    # return compartments in READABLE text output
    i = 1
    for s in data:
        # cSpell:ignore ocpus
        out += f"{i:>4} {s.shape:20} {s.ocpus:5.1f}x " \
            f"{s.processor_description[:22]:22} " \
            f"{s.memory_in_gbs:5.0f}GB Ram\n"
        i += 1

    return out
Returns a formated list of shapes.

    Args:
        data (list): A list of shape objects.

    Returns:
        The formated list as string
    
Returns a formated list of shapes.
Returns a formated list of shapes .
def format_shape_listing(data):
    out = ""
    i = 1
    for s in data:
        out += f"{i:>4} {s.shape:20} {s.ocpus:5.1f}x " \
            f"{s.processor_description[:22]:22} " \
            f"{s.memory_in_gbs:5.0f}GB Ram\n"
        i += 1
    return out
def format_shape_listing ( data ) : out = "" i = 1 for s in data : out += f"{i:>4} {s.shape:20} {s.ocpus:5.1f}x " f"{s.processor_description[:22]:22} " f"{s.memory_in_gbs:5.0f}GB Ram\n" i += 1 return out
Returns a formated list of shapes.
Returns a formated list of shapes .
"""Returns a formated list of shapes.

    Args:
        data (list): A list of shape objects.

    Returns:
        The formated list as string
    """ # return compartments in READABLE text output
 # cSpell:ignore ocpus

The formated list as string
The formated list as string
data
A list of shape objects.
A list of shape objects .