A collection of utilities to convert xml-tables to other formats, such
as wiki or html.
Version:
8cbd1b7187ce3ed9a825d6ed11cc432f3cfde9a5
Date:
2017-12-05 15:29:36 +0000
Author:
Collin Capano <cdcapano@ligo.caltech.edu>
|
format_cell(val,
round_floats=False,
decimal_places=2,
format_links=False,
hlx='
' ,
hxl='
' ,
xhl='
' )
Applys smart_round and format_hyperlink to values in a cell if
desired. |
source code
|
|
|
|
|
|
|
get_row_data(row,
column_name,
cat_time_ns=True)
Retrieves the requested column's data from the given row. |
source code
|
|
|
print_tables(xmldoc,
output,
output_format,
tableList=[ ] ,
columnList=[ ] ,
round_floats=True,
decimal_places=2,
format_links=True,
title=None,
print_table_names=True,
unique_rows=False,
row_span_columns=[ ] ,
rspan_break_columns=[ ] )
Method to print tables in an xml file in other formats. |
source code
|
|
|
|
|
smart_round(val,
decimal_places=2)
For floats >= 10.**-(decimal_places - 1), rounds off to the valber
of decimal places specified. |
source code
|
|