Skip to main content
Version: 0.5.x

ProgressTable

Display a formatted table in the console to track the algorithm's progress.

Inheritance

This class extends TableFormatter.

Module: aisp.utils.display
Import: from aisp.utils.display import ProgressTable


Constructor Parameters

NameTypeDefaultDescription
headersMapping[str, int]-Mapping {column_name: column_width}.
verboseboolTrueIf False, prints nothing to the terminal.

Public Methods

update

def update(self, values: Mapping[str, Union[str, int, float]]) -> None:
...

Add a new row of values to the table.

Parameters

NameTypeDefaultDescription
valuesMapping[str, Union[str, int, float]]-Keys must match the columns defined in headers.

finish

def finish(self) -> None:
...

End the table display, printing the bottom border and total time.