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

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

    Returns:
        The formated list as string
    """

    import math

    out = ""

    # return compartments in READABLE text output
    split = math.ceil(len(data)/2)
    i = 1
    while i <= split:
        out += format_image_list_item(data, i-1)

        if i+split < len(data):
            out += f" {format_image_list_item(data, split+i-1)}\n"
        else:
            out += "\n"
        i += 1

    return out
Returns a formated list of images.

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

    Returns:
        The formated list as string
    
Returns a formated list of images.
Returns a formated list of images .
def format_image_listing(data):
    import math
    out = ""
    split = math.ceil(len(data)/2)
    i = 1
    while i <= split:
        out += format_image_list_item(data, i-1)
        if i+split < len(data):
            out += f" {format_image_list_item(data, split+i-1)}\n"
        else:
            out += "\n"
        i += 1
    return out
def format_image_listing ( data ) : import math out = "" split = math . ceil ( len ( data ) / 2 ) i = 1 while i <= split : out += format_image_list_item ( data , i - 1 ) if i + split < len ( data ) : out += f" {format_image_list_item(data, split+i-1)}\n" else : out += "\n" i += 1 return out
Returns a formated list of images.
Returns a formated list of images .
"""Returns a formated list of images.

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

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

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