template_bank_generator_HM.TemplateBank#
Back to Module page
Summary#
No class docstring summary available.
Method |
Summary |
|---|---|
Instantiates class from json file created by previous run |
|
Generates amplitudes of all modes from given calphas |
|
Generates phases of all modes from given coefficients |
|
No docstring summary available. |
|
No docstring summary available. |
|
No docstring summary available. |
|
WARNING: Not modified by Jay for the case of HM |
|
Convenience interface to gen_waveform that removes the linear component of the phase in the same way as was used to make the bank |
|
Generates conditioned time-domain waveforms given frequency domain waveforms. |
|
Generates waveforms from given coefficients Note: At fs_out <= min(fs_basis) or >= max(fs_basis), the output amplitudes are zero |
|
Generates time-domain waveforms given basis coefficients OK for FFT test but might not be for injection due to wraparound and truncation losses |
|
Orthogonalizes the different higher modes in the wf (useful for later appropriately calculating inner product of data with diff modes) |
|
Useful function to get conditioning parameters for whitened waveforms |
|
Finds normalization factor, support, and shift for whitened waveforms in bank if they aren’t already defined \*NOTE\* for PSD estimation, need: fftsize \* dt > chunktime |
|
Generates whitened and conditioned time-domain waveforms given basis coefficients, or input waveforms |
|
Generates boundary whitened and conditioned time-domain waveforms |
|
Splits whitened time domain waveform into chunks with desired fractions of SNR^2, useful for vetoes |
|
Generator that returns waveforms in bank and corresponding c_alphas |
|
Returns a grid between min_val and max_val If force_zero=True: 0 is a gridpoint Spacing is <= d_val/2 at the edges Spacing is <= d_val in the bulk If force_zero=False: Spacing is <= d_val/2 at the edges Spacing is exactly d_val in the bulk |
|
Return a list of arrays with the axes of a grid that covers all the physical waveforms used to generate the bank. |
|
This was the code for removing calpha dimensions that were too small Now, we always allow = ndims |
|
Convenience function to output number of templates in the bank |
|
Get the multiindex of the gridpoint that most closely matches a point. Assumes that the grid is rectangular, but not necessarily regular. |
|
This function was written by Javier but now superseded Normalizing flow. Return the set of points from a rectangular grid in component space that are close to a physical waveform. Assumes that irrelevant c_alphas are zero (in the extra dimensions). |
|
Removes unphysical templates using the normalizing flow based on their astrophysical prior probability. |
|
Return the set of points on which to place templates, an array of dimension ntemplates x ndims |
|
Generate a list of physical templates and save it inside a dictionary as a class attribute. The key of the dictionary is a tuple (delta_calpha, fudge, force_zero) |
|
Checks if the given calphas are physical, i.e. that they are in the trimmed grid that remove_nonphysical_templates outputs |
|
Return the calpha on the fine axis that: - was under the responsibility of calpha_coarse - is closest to calpha |
|
Return the values of the coefficients in coeff_grid that most closely match some input coefficients. Similar to rounding to the grid spacing, but accounts for offset and the grid needn’t be uniform or rectangular, e.g. if nonphysical templates have been removed. |
|
Computes the mismatches between original astrophysical waveforms and the bank’s representation of them. Used to measure losses in sensitivity |
|
Returns bin edges at which we evaluate relative waveforms |
|
Adds the template prior to the marginalized HM scores Same arguments as marginalized_HM_scores() below |
|
The scores obtained from triggering can sometimes be unphysical ,e.g., \|Z_33\|>>\|Z_22\| (here Z=complex rho timeseries) This function marginalizes or maximizes over inclination and mass ratio for HMs |
|
Return a guess of m1, m2, s1z, s2z, l1, l2 from a template’s coefficients We have currently only used 22, not HM (for which, breaking the q-Chieff degeneracy might help) |
|
Transforms [m1, m2, s1z, s2z, lambda1, lambda2] to commonly used parameters [mchirp, eta, chieff, chia, tilde{lambda}, delta tilde{lambda}] |
|
Has not been updated by Jay. Generates random time-domain waveforms, OK for FFT test but not for injection due to wraparound |
|
Has not been updated by Jay. Computes SNR degradation for a number of random waveforms shifted by a single TD index, used in deciding the time resolution to use for the matched filtering |
|
Has not been updated by Jay. Saves SNR degradation as a function of frequency for waveforms in bank. Note: Requires that bank was loaded with load_lwfs=True |
Class docstring#
No docstring text available.