pygsti.report.row

Defines the Row class

Module Contents

Classes

Row

Representation of a table row

class pygsti.report.row.Row(row_data=None, formatters=None, labels=None, non_markovian_ebs=False)

Bases: object

Representation of a table row

Parameters

row_datalist

Raw data for the table

formatterslist[string], optional

Formatting options for each cell

labelslist[string], optional

Labeling options for each cell

non_markovian_ebsbool

Whether non-Markovian error bars should be used

Create a row object

Parameters

row_datalist

raw data for the table

formattersoptional, list[string]

formatting options for each cell

labelsoptional list[string]

labeling options for each cell

non_markovian_ebsbool

boolean indicating if non markovian error bars should be used

add(data, formatter=None, label=None)

Adds a cell with the given data, formatter and label

Parameters
dataReportableQty

Cell data to be reported

formatterstring, optional

Name of the cell formatter to be used (ie ‘Effect’)

labelstring, optional

Label of the cell

Returns

None

render(fmt, specs)

Render a row of cells

Parameters
fmtstring

Format to be rendered in

specsdict

Options for formatting

Returns

list