Revision 6e3d7490eb12e6c258b19bbd4a281c96090cef08 authored by Tito Dal Canton on 03 February 2023, 16:04:28 UTC, committed by GitHub on 03 February 2023, 16:04:28 UTC
* Update GitHub actions to fix Node.js 16 warning * Update distribution.yml --------- Co-authored-by: Alex Nitz <alex.nitz@gmail.com>
1 parent f2e2bff
hwinj.py
"""This example shows how to determine when a CBC hardware injection is present
in the data from a detector.
"""
import matplotlib.pyplot as pp
from pycbc import dq
start_time = 1126051217
end_time = start_time + 10000000
# Get times that the Livingston detector has CBC injections into the data
segs = dq.query_flag('L1', 'CBC_HW_INJ', start_time, end_time)
pp.figure(figsize=[10, 2])
for seg in segs:
start, end = seg
pp.axvspan(start, end, color='blue')
pp.xlabel('Time (s)')
pp.show()
Computing file changes ...