tables Module

class Table(source, latex, bicycles)

Bases: object

A class for generating tables of the measurment and parameter data associated with a bicycle.

create_rst_table(fileName=None)

Returns a reStructuredText version of the table.

Parameters:
fileNamestring

If a path to a file is given, the table will be written to that file.

Returns:
rstTablestring

reStructuredText version of the table.

generate_table_data()

Generates a list of data for a table.

generate_variable_list()
to_latex(var)

Returns a latex representation for a given variable string name.

Parameters:
varstring

One of the variable names used in the bicycleparameters package.

Returns:
latexstring

A string formatting for pretty LaTeX math print.

uround(value)

Returns a string representation of a value with an uncertainity which has been rounded to significant digits based on the uncertainty value.

Parameters:
valueufloat

A single ufloat.

Returns:
sstring

A rounded string representation of value.

2.4563752289999+/-0.0003797273827
becomes
2.4564+/-0.0004
This probably doesn’t work for weird cases like large uncertainties.