help="IFOs to check, eg. H1 and L1.") parser.add_argument("--schedule", type=str, help="Path to the schedule file.") parser.add_argument("--min-cadence", type=int, help="Minimum amount of time between the start \ and end of two adjacent injections.") parser.add_argument("--sample-rate", type=int, default=16384, help="Sample rate of waveform file and injection channel.") opts = parser.parse_args() # setup log logging.basicConfig(format="%(asctime)s : %(levelname)s : %(message)s", level=logging.DEBUG) # read schedule logging.info("Reading schedule file: %s", opts.schedule) hwinj_list = injtools.read_schedule(opts.schedule) # loop over HardwareInjection logging.info("Reading waveform and meta-data files") for hwinj in hwinj_list: # loop over IFO for ifo in opts.ifos: # create a dict for formatting; we allow users to use the {ifo} # substring substition in the waveform_path column format_dict = { "ifo" : ifo, } # check all waveform files are readable
# waveform file 300 seconds in advance of hardware injection start time imminent_seconds = 300 # maximum seconds in advance before jump to injection state # eg. if set to 2 seconds then jump from AWG_STREAM_OPEN_PREINJECT to # _INJECT_STATE_ACTIVE 2 seconds in advance of hardware injection start time jump_to_inj_seconds = 20 # sample rate of excitation channel and waveform files sample_rate = 16384 # path to schedule file schedule_path = os.path.dirname(__file__) + "/schedule/schedule_1148558052.txt" # read schedule hwinj_list = injtools.read_schedule(schedule_path) # a boolean that turns off code blocks to run guardian daemon for development # at the dev_mode does the following: # * Does not check if the detector is locked in WAIT_FOR_NEXT_INJECT. # * Does not check if there is an external alert dev_mode = False # map injection states to GraceDB groups gracedb_group_dict = { "INJECT_CBC_ACTIVE": "CBC", "INJECT_BURST_ACTIVE": "Burst", "INJECT_STOCHASTIC_ACTIVE": "Stochastic", "INJECT_DETCHAR_ACTIVE": "Burst", }
type=int, help="Minimum amount of time between the start \ and end of two adjacent injections.") parser.add_argument("--sample-rate", type=int, default=16384, help="Sample rate of waveform file and injection channel.") opts = parser.parse_args() # setup log logging.basicConfig(format="%(asctime)s : %(levelname)s : %(message)s", level=logging.DEBUG) # read schedule logging.info("Reading schedule file: %s", opts.schedule) hwinj_list = injtools.read_schedule(opts.schedule) # loop over HardwareInjection logging.info("Reading waveform and meta-data files") for hwinj in hwinj_list: # loop over IFO for ifo in opts.ifos: # create a dict for formatting; we allow users to use the {ifo} # substring substition in the waveform_path column format_dict = { "ifo": ifo, } # check all waveform files are readable
# waveform file 300 seconds in advance of hardware injection start time imminent_seconds = 300 # maximum seconds in advance before jump to injection state # eg. if set to 2 seconds then jump from AWG_STREAM_OPEN_PREINJECT to # _INJECT_STATE_ACTIVE 2 seconds in advance of hardware injection start time jump_to_inj_seconds = 20 # sample rate of excitation channel and waveform files sample_rate = 16384 # path to schedule file schedule_path = os.path.dirname(__file__) + "/schedule/schedule_1148558052.txt" # read schedule hwinj_list = injtools.read_schedule(schedule_path) # a boolean that turns off code blocks to run guardian daemon for development # at the dev_mode does the following: # * Does not check if the detector is locked in WAIT_FOR_NEXT_INJECT. # * Does not check if there is an external alert dev_mode = False # map injection states to GraceDB groups gracedb_group_dict = { "INJECT_CBC_ACTIVE" : "CBC", "INJECT_BURST_ACTIVE" : "Burst", "INJECT_STOCHASTIC_ACTIVE" : "Stochastic", "INJECT_DETCHAR_ACTIVE" : "Burst", }