src/orion/core/cli/status.py
def print_all_trials(trials, offset=0):
    """Print all trials of the current experiment individually.

    Parameters
    ----------
    trials: list
        Trials to list in terminal.
    offset: int, optional
        The number of tabs to the right this experiment is.

    """
    headers = ["id", "status", "best objective"]
    lines = []

    for trial in sorted(trials, key=lambda t: t.status):
        line = [trial.id, trial.status]

        if trial.objective:
            headers[-1] = "min {}".format(trial.objective.name)
            line.append(trial.objective.value)

        lines.append(line)

    if not trials:
        lines.append(["empty", "", ""])

    grid = tabulate.tabulate(lines, headers=headers)
    tab = " " * offset
    print(tab + ("\n" + tab).join(grid.split("\n")))

    print("\n")
Print all trials of the current experiment individually.

    Parameters
    ----------
    trials: list
        Trials to list in terminal.
    offset: int, optional
        The number of tabs to the right this experiment is.

    
Print all trials of the current experiment individually.
Parameters

list
Trials to list in terminal.
offset: int, optional
The number of tabs to the right this experiment is.
Print all trials of the current experiment individually . Parameters list Trials to list in terminal . offset : int optional The number of tabs to the right this experiment is .
def print_all_trials(trials, offset=0):
    headers = ["id", "status", "best objective"]
    lines = []
    for trial in sorted(trials, key=lambda t: t.status):
        line = [trial.id, trial.status]
        if trial.objective:
            headers[-1] = "min {}".format(trial.objective.name)
            line.append(trial.objective.value)
        lines.append(line)
    if not trials:
        lines.append(["empty", "", ""])
    grid = tabulate.tabulate(lines, headers=headers)
    tab = " " * offset
    print(tab + ("\n" + tab).join(grid.split("\n")))
    print("\n")
def print_all_trials ( trials , offset = 0 ) : headers = [ "id" , "status" , "best objective" ] lines = [ ] for trial in sorted ( trials , key = lambda t : t . status ) : line = [ trial . id , trial . status ] if trial . objective : headers [ - 1 ] = "min {}" . format ( trial . objective . name ) line . append ( trial . objective . value ) lines . append ( line ) if not trials : lines . append ( [ "empty" , "" , "" ] ) grid = tabulate . tabulate ( lines , headers = headers ) tab = " " * offset print ( tab + ( "\n" + tab ) . join ( grid . split ( "\n" ) ) ) print ( "\n" )
Print all trials of the current experiment individually.
Print all trials of the current experiment individually .
"""Print all trials of the current experiment individually.

    Parameters
    ----------
    trials: list
        Trials to list in terminal.
    offset: int, optional
        The number of tabs to the right this experiment is.

    """
trials
offset