scistag.vislog.visual_table_logger.VisualLogTableLogger

class VisualLogTableLogger(builder)[source]

Bases: object

Helper class for storing tables inside a log

Parameters

builder (VisualLogBuilder) – The builder object with which we write to the log

Methods

begin

Creates a table logging context

Attributes

__dict__

__doc__

__module__

__weakref__

list of weak references to the object (if defined)

__call__(data, index=False, header=False)[source]

Adds a table to the log.

Parameters
  • data (list[list[any]]) –

    The table data. A list of rows including a list of columns.

    Each row has to provide the same count of columns.

    At the moment only string content is supported.

  • index – Defines if the table has an index column

  • header – Defines if the table has a header

begin()[source]

Creates a table logging context

Returns

The logging context