lloidhandler module¶
- class lloidhandler.EyeCandy(instruments, kafka_server, analysis_tag, job_tag, stream, segmentstracker, latencytracker, f_final, node_id=None)[source]¶
Bases:
object
- class lloidhandler.LLOIDTracker(stream, coincs_document, rankingstat, horizon_distance_func, gracedbwrapper, zerolag_rankingstatpdf_url=None, rankingstatpdf_url=None, ranking_stat_output_url=None, ranking_stat_input_url=None, likelihood_snapshot_interval=None, sngls_snr_threshold=None, analysis_tag='test', job_tag='', kafka_server='10.14.0.112:9092', cluster=False, cap_singles=False, FAR_trialsfactor=1.0, activation_counts=None, track_latency=False, template_id_time_map=None, background_collector_type='normal', node_id=None, f_final=1024.0, verbose=False)[source]¶
Bases:
object
! Implements additional message handling for dealing with spectrum messages and checkpoints for the online analysis including periodic dumps of segment information, trigger files and background distribution statistics.
- checkpoint(timestamp)[source]¶
! Checkpoint, e.g., flush segments and triggers to disk.
@param timestamp the LIGOTimeGPS timestamp of the current buffer in order to close off open segment intervals before writing to disk
- horizgatehandler(elem, timestamp, instrument_tpl)[source]¶
! A handler that intercepts h(t) gate state transitions to 0 horizon distances.
@param elem A reference to the lal_gate element or None (only used for verbosity) @param timestamp A gstreamer time stamp that marks the state transition (in nanoseconds) @param instrument the instrument this state transtion is to be attributed to, e.g., “H1”, etc.. @param new_state the state transition, must be either True or False
- class lloidhandler.SegmentsTracker(stream, instruments, segment_history_duration=LIGOTimeGPS(2592000, 0), verbose=False)[source]¶
Bases:
object
- flush_segments_to_disk(tag, timestamp)[source]¶
! Flush segments to disk, e.g., when checkpointing or shutting down an online pipeline.
@param timestamp the LIGOTimeGPS timestamp of the current buffer in order to close off open segment intervals before writing to disk
- gen_recent_segment_history_xmldoc()[source]¶
! Construct and return a LIGOLW XML tree containing the recent segment histories.
Must be called with the lock held.
- gen_segments_xmldoc()[source]¶
! A method to output the segment list in a valid ligolw xml format.
Must be called with the lock held.
- update_recent_segment_history()[source]¶
! A method to update the recent segment histories
Must be called with the lock held.