gwdetchar.omega.html module¶
Utilties for writing omega scan HTML pages
Initialise a new
markup.page
- gwdetchar.omega.html.toggle_link(plottype, channel, pranges)[source]¶
Create a Bootstrap button object that toggles between plot types.
- gwdetchar.omega.html.update_toc(toc, channel, name='GW')[source]¶
Add a channel to the page table of contents
- gwdetchar.omega.html.wrap_html(func)[source]¶
Decorator to wrap a function with
init_page
andclose_page
calls This allows inner HTML methods to be written with minimal arguments and content, hopefully making things simpler
- gwdetchar.omega.html.write_about_page(configfiles, prog=None)[source]¶
Write a page explaining how a Qscan analysis was completed
- Parameters:
- ifo
str
the prefix of the interferometer used in this analysis
- gpstime
float
the central GPS time of the analysis
- configfiles
list
ofstr
list of paths of the configuration files to embed
- prog
str
, optional name of the program which produced this page, defaults to the script run on the command-line
- outdir
str
, optional the output directory for the HTML
- ifo
- Returns:
- index
str
the path of the HTML written for this analysis
- index
- gwdetchar.omega.html.write_block(blockkey, block, context, tableclass='table table-sm table-hover table-bordered d-none d-lg-table')[source]¶
Write the HTML summary for a specific block of channels
- Parameters:
- blockkey: `str`
the key labeling the channel block
- block
dict
ofOmegaChannel
a list of channels and their analysis attributes
- context
str
the type of Bootstrap
<card>
object to use, color-coded by GWO standards (must be one of ‘h1’, ‘l1’, ‘v1’, ‘k1’, ‘i1’, ‘g1’, or ‘network’)- tableclass
str
, optional the
class
for the summary<table>
- Returns:
- page
page
the formatted HTML for this block
- page
- gwdetchar.omega.html.write_null_page(reason, context='info')[source]¶
Write the Qscan results to HTML
- gwdetchar.omega.html.write_qscan_page(blocks, context)[source]¶
Write the Qscan results to HTML
- Parameters:
- Returns:
- index
str
the path of the HTML written for this analysis
- index
- gwdetchar.omega.html.write_ranking(toc, primary, thresh=6.5, tableclass='table table-sm table-hover table-bordered')[source]¶
Write a table of channels ranked by their similarity to the primary
- Parameters:
- Returns:
- page
page
the formatted markup object containing the analysis summary table
- page
- gwdetchar.omega.html.write_summary(ifo, gpstime, incomplete=False, header='Summary', tableclass='table table-sm table-hover')[source]¶
Write the Qscan analysis summary HTML
- Parameters:
- Returns:
- page
page
the formatted markup object containing the analysis summary table
- page