triggers_single_detector_HM.TriggerList#
Back to Module page
Summary#
Class that takes in directories with data and template bank information, and generates/analyzes triggers # TODO: Remove notch_wt_filter options etc
Method |
Summary |
|---|---|
No docstring summary available. |
|
Instantiates class from json file created by previous run/gen_triggers Load using load_data=True and do_signal_processing=False to access the data without any glitch rejection |
|
Loads data from gwosc and makes a trigger file, records the event time as given by LIGO (different from the linear-free time) in t_event Make sure to pass an appropriate template_conf for the parameters of the event in load_kwargs If we are doing something custom (e.g., adding holes etc), save using to_json along with fname_preprocessing, and we can reload it later with the desired modifications passed to from_json |
|
Load preprocessed data from file |
|
Saves information about trigger list to json file |
|
Save preprocessing to file |
|
Sets waveform conditioning given the ASD, and expands fftsize by a factor of two if needed to make it work. Useful when trialing small FFTsizes for BNS-like banks |
|
No docstring summary available. |
|
No docstring summary available. |
|
Injects waveform into strain data, read description of injection_args for time convention, modifies strain in place as strain is a mutable type |
|
Function giving test-statistic values for various glitch tests attained in the presence of noiseless waveforms |
|
Computes SNR loss due to the mask (with appropriately inpainted data) Uses the stationary phase approximation, so valid only when the frequencies >> 1/hole size. We do not assume waveforms are normalized. Note: extended by Jay to include corrections due to bands in mask_stft |
|
Computes the proper normalization for varying PSD, optionally returns correction, scores, and score-indices used at a particular index # Warning: Currently only the 22 wf is used # Warning: Doesn’t apply a linear-free correction to the indices, ensure its use is consistent |
|
Set things up to generate triggers |
|
Prepare to compute everything on a reduced set of data to save time for BH-like waveforms. Defines subset of data, performs relevant FFTs, and stores in class variables Note that if relevant_index + right_inds_scores goes past the edge of the data, then we will have zeros in all the elements for which we don’t have data |
|
Computes overlaps and hole corrections for multiple waveforms We do not assume waveforms are normalized |
|
Convenience function to generate overlaps and hole corrections, for multiple waveforms or calphas, on full data or a subset of it |
|
Convenience function to generate hole-corrected overlaps on the whole file The first three parameters are prefered in order of appearance |
|
Applies correction factor to times and SNRs and makes real array clist is assumed to have the following columns: if self.save_hole_correction is True: time, (overlap.real, overlap.imag) x 3, hole_correction x 3, psd_drift_correction, basis_coeff1, basis_coeff2, … else: time, (overlap.real, overlap.imag) x 3, psd_drift_correction, basis_coeff1, basis_coeff2, … |
|
Generate triggers with sinc-interpolated scores with a single template for entire data or a subset of it |
|
Defines a template bank with given spacing, performs matched filtering of data against this bank, and saves triggers above threshold |
|
Finds bad times for the file, where it overproduces triggers due to widespread problems TODO: Fix this using preserve_max_snr? |
|
“ |
|
Prepare subset that is large enough for vetos/optimization of any trigger in triggers |
|
Checks trigger by subtracting best fit waveform and looking for excess power commensurate with waveform |
|
Chi2 and tail veto using phase |
|
Convenience function to apply all vetos |
|
Defines subset if needed, and returns parameters to locate trigger in it |
|
Defines summary statistics for convolution with relative waveforms The statistics correspond to convolution with the calpha waveform, without any subgrid shifts |
|
Generates triggers at/on a small calpha grid around a trigger Has some not so quantifiable losses/biases due to the truncation of the waveforms that are being compared, and interpolations of the hole and PSD drift corrections Note: If the location is beyond the length of the data, it actually generates triggers around the edge due to quirks of searchsorted |
|
NOTE: This fn has not been modified by Jay for higher modes. Generates triggers at/on a small calpha grid around a trigger Has some not so quantifiable losses/biases due to the truncation of the waveforms that are being compared, and interpolations of the hole and PSD drift corrections |
|
Apply cuts on triggers in self.filteredclist. Call with filters=None, rejects=None, and reset_filters=True to clear filters |
|
No docstring summary available. |
|
No docstring summary available. |
|
Filters a processed clist |
|
No docstring summary available. |
|
Makes spectrogram of whitened strain data |
|
Plots normalized overall histogram of test statistic |
|
Plots histogram of trigger time offsets from start of file (self.t0) |
|
Make corner plot of parameters of triggers |
|
TODO: Deprecation Warning Plots running histogram of test statistic in time-chunks |
|
Plot waveforms in trigger(s) against the data |
Class docstring#
Class that takes in directories with data and template bank information,
and generates/analyzes triggers
# TODO: Remove notch_wt_filter options etc