openquake.engine.tools package

openquake.engine.tools.correct_complex_sources module

Correct complex fault sources to comply with Aki and Richards convention.

openquake.engine.tools.correct_complex_sources.fix(fname, outname=None)[source]
openquake.engine.tools.correct_complex_sources.fix_source_node(node)[source]
openquake.engine.tools.correct_complex_sources.make_edge(edge)[source]
openquake.engine.tools.correct_complex_sources.reverse(edge)[source]

openquake.engine.tools.make_html_report module

class openquake.engine.tools.make_html_report.HtmlTable(header_plus_body, name='noname', empty_table='Empty table')[source]

Bases: object

Convert a sequence header+body into a HTML table.

border = '1'
css = ' tr.evenRow { background-color: lightgreen }\n tr.oddRow { }\n th { background-color: lightblue }\n '
maxrows = 5000
render(dummy_ctxt=None)[source]
summary = ''
openquake.engine.tools.make_html_report.html(header_rows)[source]

Convert a list of tuples describing a table into a HTML string

openquake.engine.tools.make_html_report.make_report(isodate='today')[source]

Build a HTML report with the computations performed at the given isodate. Return the name of the report, which is saved in the current directory.

openquake.engine.tools.make_html_report.make_tabs(tag_ids, tag_status, tag_contents)[source]

Return a HTML string containing all the tabs we want to display

openquake.engine.tools.viewlog module

An extremely simple log viewer, suitable for debugging

Module contents