Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALBurst 2.0.7.1-ea7c608
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Macros Modules Pages
lalburst.SnglBurstUtils Namespace Reference

Data Structures

class  CoincDatabase
 

Functions

def summarize_coinc_database (contents, filename=None)
 
def coinc_sngl_bursts (contents, coinc_event_id)
 
def get_time_slides (connection)
 Query the database for the IDs and offsets of all time slides, and return two dictionaries one containing the all-zero time slides and the other containing the not-all-zero time slides. More...
 
def time_slides_livetime (seglists, time_slides, verbose=False)
 Given a sequence of time slides (each of which is an instrument --> offset dictionary), use the segmentlistdict dictionary of segment lists to compute the live time in each time slide. More...
 
def latexnumber (s)
 Convert a string of the form "d.dddde-dd" to "d.dddd \\times 10^{-dd}". More...
 
def make_burst_plot (x_label, y_label, width=165.0)
 width is in mm More...
 

Variables

 floatpattern = re.compile("([+-]?[.0-9]+)[Ee]([+-]?[0-9]+)")
 

Function Documentation

◆ summarize_coinc_database()

def lalburst.SnglBurstUtils.summarize_coinc_database (   contents,
  filename = None 
)

Definition at line 239 of file SnglBurstUtils.py.

◆ coinc_sngl_bursts()

def lalburst.SnglBurstUtils.coinc_sngl_bursts (   contents,
  coinc_event_id 
)

Definition at line 260 of file SnglBurstUtils.py.

◆ get_time_slides()

def lalburst.SnglBurstUtils.get_time_slides (   connection)

Query the database for the IDs and offsets of all time slides, and return two dictionaries one containing the all-zero time slides and the other containing the not-all-zero time slides.

Definition at line 288 of file SnglBurstUtils.py.

◆ time_slides_livetime()

def lalburst.SnglBurstUtils.time_slides_livetime (   seglists,
  time_slides,
  verbose = False 
)

Given a sequence of time slides (each of which is an instrument --> offset dictionary), use the segmentlistdict dictionary of segment lists to compute the live time in each time slide.

Return the sum of the live times from all slides.

Definition at line 303 of file SnglBurstUtils.py.

◆ latexnumber()

def lalburst.SnglBurstUtils.latexnumber (   s)

Convert a string of the form "d.dddde-dd" to "d.dddd \\times 10^{-dd}".

Example:

‍import math print latexnumber("%.16e" % math.pi) 3.1415926535897931 \times 10^{0}

Definition at line 341 of file SnglBurstUtils.py.

◆ make_burst_plot()

def lalburst.SnglBurstUtils.make_burst_plot (   x_label,
  y_label,
  width = 165.0 
)

width is in mm

Definition at line 358 of file SnglBurstUtils.py.

Variable Documentation

◆ floatpattern

lalburst.SnglBurstUtils.floatpattern = re.compile("([+-]?[.0-9]+)[Ee]([+-]?[0-9]+)")

Definition at line 329 of file SnglBurstUtils.py.